[Issue 16590] Wrong di generation for ref methods
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Feb 24 15:47:15 PST 2017
https://issues.dlang.org/show_bug.cgi?id=16590
Satoshi <satoshi at rikarin.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #14 from Satoshi <satoshi at rikarin.org> ---
I found more bugs.
return attribute is generated as prefix, but it's not valid for compiler.
generated:
ref return rename()() {...}
should be:
ref rename()() return { ... }
next bug:
generated:
if (a < 2 | b > 7)
should be:
if ((a < 2) | (b > 7))
--
More information about the Digitalmars-d-bugs
mailing list