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

Cauterite <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Cauterite <[email protected]> ---
i think you made the mistake of writing
    () => {}
when you actually mean
    () {}

the compiler interprets `() => {}` as a lambda which returns another lambda
`{}`

not to be confused with the same syntax in JavaScript, which works the way you
expected it to work here.

--

Reply via email to