[Issue 18199] Error with lambda in struct initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 18 08:54:47 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18199
--- Comment #5 from John Belmonte <john at neggie.net> ---
To clarify, the struct initializer test aborts on any semicolon or return
token, which can happen in any function literal with curly brackets.
I believe these are all the cases which need to additionally be tolerated:
function (parameters) { statements... }
delegate (parameters) { statements... }
(parameters) { statements... }
{ statements... }
--
More information about the Digitalmars-d-bugs
mailing list