← Back to index
|
Original Bugzilla link
Bug 12191 – bad purity propagation for double-nested delegate templates
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-18T06:45:41Z
Last change time
2024-12-13T18:17:03Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Vladimir Panteleev
Moved to GitHub: dmd#18775 →
Comments
Comment #0
by dlang-bugzilla — 2014-02-18T06:45:41Z
void fun(H)(H h) { enum parameter = ""; alias T = typeof(h.a(parameter)); // If removed, alters error message static if (!is(typeof(h.a(parameter)) == void)) fun(h.a(parameter)); } struct S(alias d) { alias a = d; } unittest { int var; fun ( S! ( (string arg) { return S! ( (/* string */ arg) // uncomment type to fix error { var++; } )(); } )() ); }
Comment #1
by robert.schadek — 2024-12-13T18:17:03Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/18775
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB