[Issue 9179] Invalid template instantiation attempt should result in a readable error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 25 08:01:58 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=9179
Basile-z <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #2 from Basile-z <b2.temp at gmx.com> ---
This particular case is well diagnosized nowadays:
>/tmp/temp_7FAAE5E75B70.d(7,14): Error: cannot pass type `int` as a function argument
>/tmp/temp_7FAAE5E75B70.d(13,9): Error: template `temp_7FAAE5E75B70.func` cannot > deduce function from argument types `!()(int)`, candidates are:
>/tmp/temp_7FAAE5E75B70.d(6,6): `func(T)(T t)`
--
More information about the Digitalmars-d-bugs
mailing list