Mercurial > projects > dstress
annotate run/s/static_34_A.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | c56770fab949 |
children |
rev | line source |
---|---|
731 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Kris <du@bar.com> | |
6 // @date@ 2005-10-28 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5233 |
731 | 8 |
9 module dstress.run.s.static_34_A; | |
10 | |
11 int main(){ | |
12 class C{ | |
13 static C create(){ | |
14 return new C; | |
15 } | |
16 } | |
17 | |
18 C c1 = new C; | |
19 assert(c1); | |
20 | |
21 C c2 = c1.create(); | |
22 assert(c2); | |
23 | |
24 C c3 = C.create(); | |
25 assert(c3); | |
26 | |
27 return 0; | |
28 } | |
29 |