Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail36.d(13): Error: template `t(int L)` does not have property `a`
5 fail_compilation/fail36.d(18): Error: mixin `fail36.func.t!10` error instantiating
6 ---
7 */
8
9 template t(int L)
10 {
11 int a;
12 // void foo(int b = t!(L).a) {} // correct
13 void foo(int b = t.a) {} // wrong
14 }
15
16 void func()
17 {
18 mixin t!(10);
19 }