Thread overview
[Issue 24784] Error on first lambda parameter with default with type inference
Sep 26
Bolpat
Sep 26
Dlang Bot
September 26
https://issues.dlang.org/show_bug.cgi?id=24784

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #1 from Nick Treleaven <nick@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.

--
September 26
https://issues.dlang.org/show_bug.cgi?id=24784

Bolpat <qs.il.paperinik@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qs.il.paperinik@gmail.com
           Assignee|nobody@puremagic.com        |qs.il.paperinik@gmail.com

--- Comment #2 from Bolpat <qs.il.paperinik@gmail.com> ---
I’ll try to fix this.

--
September 26
https://issues.dlang.org/show_bug.cgi?id=24784

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@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

--