Mercurial > projects > dstress
annotate run/default_argument_02.d @ 1586:a74f0139fc3d
Fix tests using typeof on types.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 21 Aug 2008 15:42:21 +0200 |
parents | b8c0195059d9 |
children |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
0 | 4 |
5 // @author@ Andy Friesen <andy@ikagames.com> | |
6 // @date@ 2004-06-25 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=591 |
0 | 8 |
374 | 9 module dstress.run.default_argument_02; |
10 | |
0 | 11 class MyClass{ |
12 static MyClass test(int i=0){ | |
13 return new MyClass(); | |
14 } | |
15 } | |
16 | |
17 int main(){ | |
18 MyClass c; | |
19 c = MyClass.test; | |
20 | |
21 return 0; | |
22 } |