[Issue 2172] New: bool add bool accepted?
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 25 08:29:35 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2172
Summary: bool add bool accepted?
Product: D
Version: 1.030
Platform: PC
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: davidl at 126.com
BugsThisDependsOn: 1511
bool t;
t= true+false; // this accepted
t= true+true; // Error: cannot implicitly convert expression (2) of type int
to bool
bool type shouldn't be addable.
and error message is confusing.
--
More information about the Digitalmars-d-bugs
mailing list