[Issue 12579] DMD rejects valid function literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 15 09:54:11 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12579

brian-schott at cox.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from brian-schott at cox.net ---
The compiler still rejects this:

void function() bar { writeln("test"); }

The grammar specification says this is valid. It does not require the '='
token. If the compiler's behavior is correct, the specification needs to be
changed.

Please do not close bugs while the specification is not consistent with the
compiler just because the compiler's behavior is correct.

--


More information about the Digitalmars-d-bugs mailing list