[Issue 17899] Cannot initialise contextless delegate at compile time
https://issues.dlang.org/show_bug.cgi?id=17899 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --
[Issue 17899] Cannot initialise contextless delegate at compile time
https://issues.dlang.org/show_bug.cgi?id=17899 --- Comment #4 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/a552d6552d44de9284f03815ecfb32585f0186ac Fix Issue 17899 - Cannot initialise contextless delegate at compile time Also revert test case for 13259 - there is no reason that initialised module scope delegates should be illegal. https://github.com/dlang/dmd/commit/8476f8bb4e59e92ed8b01bcd7513066aae172139 Merge pull request #7704 from thewilsonator/patch-2 Fix Issue 17899: Allow delegate initialisation at module scope --
[Issue 17899] Cannot initialise contextless delegate at compile time
https://issues.dlang.org/show_bug.cgi?id=17899 --- Comment #3 from Nicholas Wilson--- (In reply to RazvanN from comment #1) > Running the example on git HEAD issues : "Error: non-constant nested > delegate literal expression __lambda3" which is pretty cryptic. Hmm, it seems this behaviour was added to fix issue 13259, but that should be legal, i.e. not an error. --
[Issue 17899] Cannot initialise contextless delegate at compile time
https://issues.dlang.org/show_bug.cgi?id=17899 --- Comment #2 from Nicholas Wilson--- Hmm, it seems this behaviour was added to fix #13259, but that should be legal, i.e. not an error. --
[Issue 17899] Cannot initialise contextless delegate at compile time
https://issues.dlang.org/show_bug.cgi?id=17899 RazvanNchanged: What|Removed |Added CC||razvan.nitu1...@gmail.com --- Comment #1 from RazvanN --- Running the example on git HEAD issues : "Error: non-constant nested delegate literal expression __lambda3" which is pretty cryptic. --