[Issue 10602] Better error message for wrong template lambda given to function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 1 22:07:42 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=10602
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
--- Comment #1 from Nick Treleaven <nick at geany.org> ---
It now also prints e.g.:
badlambda.d(4): cannot pass argument `__lambda2` of type `void` to
parameter `int function(int) f`
It would be nice if it said:
(4): Error: lambda returns `double`, expected `int`
(5): Error: lambda does not accept arguments `(int)`
--
More information about the Digitalmars-d-bugs
mailing list