digitalmars.D.bugs - [Issue 21742] New: dot template expressions don't have the void type
- d-bugmail puremagic.com (24/24) Mar 21 2021 https://issues.dlang.org/show_bug.cgi?id=21742
https://issues.dlang.org/show_bug.cgi?id=21742 Issue ID: 21742 Summary: dot template expressions don't have the void type like any template Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: boris2.9 gmail.com int foo()() { return 0; } struct B { int foo()() { return 0; } } // works static assert(is(typeof(foo) == void)); // fails, gagged error: expression B().foo()() has no type static assert(is(typeof(B().foo) == void)); --
Mar 21 2021