Debian Codegraph @

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

raw
1 module issue21905;
2
3 struct Conv
4 {
5 StaticIterable b;
6 alias b this;
7 }
8
9 struct StaticIterable
10 {
11 static Conv b;
12 alias b this;
13 }
14
15 void each(ref StaticIterable r)
16 {
17 return ;
18 }
19
20 void main()
21 {
22 StaticIterable s;
23 each(s);
24 }