Bug 10605 – Lambda grammar is not sufficient

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-10T21:55:00Z
Last change time
2013-07-15T18:10:40Z
Keywords
pull, spec
Assigned to
nobody
Creator
k.hara.pg
Blocks
10233

Comments

Comment #0 by k.hara.pg — 2013-07-10T21:55:53Z
From: http://forum.dlang.org/post/[email protected] Today, compiler accepts following lambda code, but the syntax is not followed by language specification. void main() { auto fp = function (int a) => a; auto dg = delegate (int a) => a; }
Comment #1 by k.hara.pg — 2013-07-10T21:57:44Z
Comment #2 by github-bugzilla — 2013-07-15T17:59:55Z
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org https://github.com/D-Programming-Language/dlang.org/commit/f7e72cc9885eaab905810ef5afc448c5bf197292 fix Issue 10605 - Lambda grammar is not sufficient Improve Lambda grammar and describe rewrite rule https://github.com/D-Programming-Language/dlang.org/commit/c73a1f5cdd283a9bc741d8883defee9901c1234d Merge pull request #351 from 9rnsr/fix_lambda Issue 10605 - Lambda grammar is not sufficient