[Issue 24784] Error on first lambda parameter with default with type inference
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 26 16:13:11 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24784
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #1 from Nick Treleaven <nick at geany.org> ---
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.
--
More information about the Digitalmars-d-bugs
mailing list