[Issue 10455] Print range computed by expression range analysis in error messages

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 23 14:08:53 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10455



--- Comment #1 from bearophile_hugs at eml.cc 2013-06-23 14:08:52 PDT ---
> temp.d(3): Error: cannot implicitly convert expression (cast(int)x << 1) in
> interval [0 ... 510] of type int to ubyte

Jonathan M Davis suggests to use a more mathematical syntax to denote an
interval closed on the right, like:

temp.d(3): Error: cannot implicitly convert expression (cast(int)x << 1) in
interval [0, 510] of type int to ubyte

-- 
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