blob: b8f5df4b46d8d8c05acbc1212258be5f0cf84b68 [file] [log] [blame]
// 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));