Files
ldc/test/bug15.d
Tomas Lindquist Olsen 10db08076c [svn r44] Lots of bug fixes.
New array literal support
New array ~= operator support (for single element)
New with statement support
More...
2007-10-19 07:43:21 +02:00

18 lines
229 B
D

module bug15;
bool bool1(bool b) {
if (b) return true;
else return false;
}
bool bool2(bool b) {
if (b) {return true;}
else {return false;}
}
void main()
{
assert(bool1(true));
assert(!bool2(false));
}