Mercurial > projects > dstress
annotate run/s/static_34_A.d @ 731:c56770fab949
Kris <du@bar.com>
2005-10-28
news:djtsj4$2aci$1@digitaldaemon.com
author | thomask |
---|---|
date | Mon, 07 Nov 2005 01:05:48 +0000 |
parents | |
children | b8c0195059d9 |
rev | line source |
---|---|
731 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Kris <du@bar.com> | |
6 // @date@ 2005-10-28 | |
7 // @uri@ news:djtsj4$2aci$1@digitaldaemon.com | |
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 |