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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from [email protected] ---
This comes down to:

----
auto wrapper = (size_t) {};
----

It doesn't compile because "size_t" is not the parameter type here. It's the
parameter *name*. Since the parameter has no type, the function literal is a
template. A template has no type, and you can't put it in a variable.

Closing as invalid. Reopen if I'm missing the point.

--

Reply via email to