Mercurial > projects > dstress
comparison run/alias_07.d @ 1559:ec5e144583ea
D1 -> D2 : 1/N
author | thomask |
---|---|
date | Sun, 19 Aug 2007 19:11:54 +0000 |
parents | 6e4063f99377 |
children |
comparison
equal
deleted
inserted
replaced
1558:d40d75fcd5c5 | 1559:ec5e144583ea |
---|---|
10 module dstress.run.alias_07; | 10 module dstress.run.alias_07; |
11 | 11 |
12 alias int MyInt; | 12 alias int MyInt; |
13 | 13 |
14 int main(){ | 14 int main(){ |
15 MyInt test(char[] c=""){ | 15 MyInt test(string c = ""){ |
16 return 2; | 16 return 2; |
17 } | 17 } |
18 assert(test("abc")==2); | 18 if(test("abc") != 2){ |
19 assert(0); | |
20 } | |
19 return 0; | 21 return 0; |
20 } | 22 } |