[Issue 19242] Strange inferencing by combination of template and lambda
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 12 16:25:42 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19242
Basile B. <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |b2.temp at gmx.com
Hardware|x86 |All
OS|Windows |All
--- Comment #1 from Basile B. <b2.temp at 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.
--
More information about the Digitalmars-d-bugs
mailing list