[Bug 24] Arithmetic operators are allowed on boolean expressions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 9 18:03:22 PST 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=24
ddparnell at bigpond.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
------- Comment #4 from ddparnell at bigpond.com 2006-03-09 20:03 -------
With version v0.149 (Windows) I get this ...
void main()
{
bool x1 = true + true; // fails
bool x2 = true - true; // accepted
bool x3 = true * true; // accepted
bool x4 = true / true; // accepted
bool x5; x5 += true; // fails
bool x6; x6 -= true; // fails
bool x7; x7 *= true; // fails
bool x8; x8 /= true; // fails
}
--
More information about the Digitalmars-d-bugs
mailing list