dmd/compiler/test/compilable/test21742.d
2022-07-09 18:53:07 +02:00

13 lines
267 B
D

// https://issues.dlang.org/show_bug.cgi?id=21742
int foo()() { return 0; }
struct B
{
int foo()() { return 0; }
}
static assert(is(typeof(foo) == void));
// failed, gagged error: expression B().foo()() has no type
static assert(is(typeof(B().foo) == void));