[Issue 21917] Unused default values for IFTI parameters should not be typechecked against the IFTI-inferred type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 13 06:00:55 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21917

--- Comment #2 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to Vladimir Panteleev from comment #1)
> Indeed, the example above works if modified simply by adding an overload:
> 
> void fun()(float a) {}

Oops, never mind that, the compiler just casts int to float.

--


More information about the Digitalmars-d-bugs mailing list