[Issue 12579] DMD rejects valid function literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 15 10:27:01 PDT 2014


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

--- Comment #3 from brian-schott at cox.net ---
The grammar also states that function literals can have contracts by using the
FunctionBody rule, but the compiler rejects this:

void function() f = in { assert(true); } body { writeln("hello world"); }

--


More information about the Digitalmars-d-bugs mailing list