Mercurial > projects > ldc
comparison test/bug15.d @ 40:8b0e809563df trunk
[svn r44] Lots of bug fixes.
New array literal support
New array ~= operator support (for single element)
New with statement support
More...
author | lindquist |
---|---|
date | Fri, 19 Oct 2007 07:43:21 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
39:fd5e8bbfcb25 | 40:8b0e809563df |
---|---|
1 module bug15; | |
2 | |
3 bool bool1(bool b) { | |
4 if (b) return true; | |
5 else return false; | |
6 } | |
7 | |
8 bool bool2(bool b) { | |
9 if (b) {return true;} | |
10 else {return false;} | |
11 } | |
12 | |
13 void main() | |
14 { | |
15 assert(bool1(true)); | |
16 assert(!bool2(false)); | |
17 } |