[Issue 12290] IFTI should consider implicit conversions of the literal arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 3 08:10:39 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12290



--- Comment #5 from Steven Schveighoffer <schveiguy at yahoo.com> 2014-03-03 08:10:38 PST ---
Definitely related. In both cases, the compiler is inferring the type of the
literal based on the defined type of the literal rather than how it's used. In
both cases, choosing a smaller integer type will satisfy the call, and should
be done.

Yes, in 4998, the example does not provide enough information in the signature
itself to figure out the correct type to use, which is why the proposal is
given.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list