Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test16621.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=16621
2
3 template xxx()
4 {
5 Vector2f xxx()
6 {
7 return this;
8 }
9 }
10
11 struct Vector2f
12 {
13 mixin xxx!();
14 alias xxx this;
15 }
16
17 void foo(ref Vector2f pos);
18
19 void test()
20 {
21 Vector2f v;
22 foo(v);
23 }