http://d.puremagic.com/issues/show_bug.cgi?id=7743
Summary: Parsing problem with nothrow delegate Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2012-03-20 19:53:27 PDT --- This code compiles with no errors: auto foo() { int x; return delegate() nothrow { return x; }; } void main() {} But with this version: auto foo() { int x; return () nothrow { return x; }; } void main() {} DMD 2.059head gives: test.d(3): expression expected, not ')' test.d(3): found 'nothrow' when expecting ')' test.d(3): found '{' when expecting ';' following return statement test.d(6): unrecognized declaration Maybe similar issues happens with other annotations. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------