Debian Codegraph @

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

raw
1 // https://issues.dlang.org/show_bug.cgi?id=21742
2
3 int foo()() { return 0; }
4
5 struct B
6 {
7 int foo()() { return 0; }
8 }
9
10 static assert(is(typeof(foo) == void));
11
12 // failed, gagged error: expression B().foo()() has no type
13 static assert(is(typeof(B().foo) == void));