[Issue 1511] static assert doesn't fail as expected
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 18 21:17:41 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1511
------- Comment #6 from davidl at 126.com 2007-09-18 23:17 -------
typeof ("a"+"b") is actually evaluated to char[0]
typeof ("a"+"b") f;
static assert(is(f==char[0]); // this passes
but in my opinion, since this operator is not implemented, the compiler should
give me fail message
typeof(1~3) b; // this always fails, cause no ~ operator for int, int
implemented
--
More information about the Digitalmars-d-bugs
mailing list