Thread overview
[Issue 19242] Strange inferencing by combination of template and lambda
Sep 12, 2018
Basile B.
Sep 12, 2018
Basile B.
Mar 21, 2020
Basile-z
Dec 17, 2022
Iain Buclaw
September 12, 2018
https://issues.dlang.org/show_bug.cgi?id=19242

Basile B. <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com
           Hardware|x86                         |All
                 OS|Windows                     |All

--- Comment #1 from Basile B. <b2.temp@gmx.com> ---
I don't know if there's a bug or an enhancement possible in the compiler. Selecting the right overload is trivial:


```
foo((int a) => a + 1);
```

If this solution is satisfying you can set the Status as RESOLVED for the reson INVALID.

--
September 12, 2018
https://issues.dlang.org/show_bug.cgi?id=19242

--- Comment #2 from Basile B. <b2.temp@gmx.com> ---
Problem is also that the specs for this kind of stuff are void. Looks like only the last overload of the overload set is tried.

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=19242

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=19242

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=19242

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19484

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--