[Issue 8807] Better error messages for a switch on doubles
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 10 15:50:50 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8807
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-10 15:50:45 PST ---
(In reply to comment #0)
> temp2.d(3): Error: 'value' is not of integral type, it is a double
This is solved in pull for Issue 4540.
> temp2.d(4): Error: case must be a string or an integral constant, not 1
> - The second error message is just wrong, because 1 is on default an integral
> constant.
It's not actually wrong, 1 is implicitly converted to type double.
Unfortunately it doesn't print 1.0 to make it obvious.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list