mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 09:33:27 +01:00
[svn r44] Lots of bug fixes.
New array literal support New array ~= operator support (for single element) New with statement support More...
This commit is contained in:
17
test/bug15.d
Normal file
17
test/bug15.d
Normal file
@@ -0,0 +1,17 @@
|
||||
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));
|
||||
}
|
||||
Reference in New Issue
Block a user