Example: ```d alias fp = (x = 0) { }; // Error: undefined identifier `x` ```
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.
I’ll try to fix this.
@Bolpat created dlang/dmd pull request #16889 "Fix Bugzilla Issue 24784" fixing this issue: - Fix Bugzilla Issue 24784 https://github.com/dlang/dmd/pull/16889