[Issue 13683] More precise error message for wrong lambda
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 23 13:27:33 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=13683
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nick at geany.org
Component|dmd |phobos
--- Comment #1 from Nick Treleaven <nick at geany.org> ---
Changing to phobos bug because `all`'s constraint uses:
is(typeof(unaryFun!pred(range.front)))
Instead this could be made a static assert, so at least the user can be
informed that the predicate is not callable with Foo.
--
More information about the Digitalmars-d-bugs
mailing list