Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/mixintype2.d

raw
1
2 /* TEST_OUTPUT:
3 ---
4 fail_compilation/mixintype2.d(13): Error: alias `mixintype2.Foo.T` recursive alias declaration
5 fail_compilation/mixintype2.d(19): Error: `mixin(0)` does not give a valid type
6 fail_compilation/mixintype2.d(20): Error: unexpected token `{` after type `int()`
7 fail_compilation/mixintype2.d(20): while parsing string mixin type `int() {}`
8 fail_compilation/mixintype2.d(20): Error: `mixin(_error_)` does not give a valid type
9 ---
10 */
11
12 struct Foo {
13 alias T = mixin("T2");
14 }
15 alias T1 = mixin("Foo.T");
16 alias T2 = mixin("T1");
17 void func (T2 p) {}
18
19 enum mixin(0) a = 0;
20 mixin("int() {}") f;