Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice9406.d(21): Error: `s1.mixin Mixin!() t1;` has no effect
5 ---
6 */
7
8 mixin template Mixin() { }
9
10 struct S
11 {
12 template t1()
13 {
14 mixin Mixin t1;
15 }
16 }
17
18 void main()
19 {
20 S s1;
21 s1.t1!();
22 }