https://issues.dlang.org/show_bug.cgi?id=13845
Peter Alexander <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |m Component|Phobos |DMD Summary|std.variant.Algebraic |Error using alias of |"__lambda2 is not a |typeof(null) as unnamed |function or delegate" when |lambda parameter |using alias vs. bare type | OS|Windows |All --- Comment #1 from Peter Alexander <[email protected]> --- Reduced: alias Null = typeof(null); auto a = (int) => 0; // ok auto b = (typeof(null)) => 0; // ok auto c = (Null x) => 0; // ok auto d = (Null) => 0; // error Error: variable bug.d type void is inferred from initializer (Null) => 0, and variables cannot be of type void --
