https://issues.dlang.org/show_bug.cgi?id=24784
Nick Treleaven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Nick Treleaven <[email protected]> --- When there's a default initializer, I think the Identifier is parsed as a type: struct X {} alias fp = (X = X.init) { pragma(msg, is(X)); return 0; }; // true enum e = fp(X()); See Issue 12814. --
