Bug 21742 – dot template expressions don't have the void type like any template
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-03-21T20:33:28Z
Last change time
2021-06-11T17:17:50Z
Keywords
pull
Assigned to
No Owner
Creator
Boris Carvajal
Comments
Comment #0 by boris2.9 — 2021-03-21T20:33:28Z
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));
Comment #1 by dlang-bot — 2021-03-21T21:44:42Z
@BorisCarvajal created dlang/dmd pull request #12294 "Fix Issue 21742 - dot template expressions don't have the void type like any template" fixing this issue:
- Fix Issue 21742 - dot template expressions don't have the void type like any template
https://github.com/dlang/dmd/pull/12294
Comment #2 by dlang-bot — 2021-04-11T03:48:50Z
dlang/dmd pull request #12294 "Fix Issue 21742 - dot template expressions don't have the void type like any template" was merged into master:
- 8bb1cc66ca71b928b06c205d3e99762e9700fd10 by Boris Carvajal:
Fix Issue 21742 - dot template expressions don't have the void type like any template
https://github.com/dlang/dmd/pull/12294
Comment #3 by dlang-bot — 2021-06-11T17:17:50Z
dlang/dmd pull request #12668 "[dmd-cxx] Backport recent bug fixes for static foreach ICEs" was merged into dmd-cxx:
- b9646f1ed7fef77f78d95e9a3f32b8dce1714c21 by Boris Carvajal:
[dmd-cxx] Fix Issue 21742 - dot template expressions don't have the void type like any template
https://github.com/dlang/dmd/pull/12668