Mercurial > projects > dstress
annotate nocompile/bug_todt_194_A.d @ 265:fd1663a1f2dd
new'ing a templated struct
zwang <nehzgnaw@gmail.com>
2005-02-03
news:cttjcg$44f$1@digitaldaemon.com
author | thomask |
---|---|
date | Thu, 03 Feb 2005 23:56:50 +0000 |
parents | |
children |
rev | line source |
---|---|
265 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ zwang <nehzgnaw@gmail.com> | |
6 // @date@ 2005-02-03 | |
7 // @uri@ news:cttjcg$44f$1@digitaldaemon.com | |
8 | |
9 module dstress.nocompile.bug_todt_194_A; | |
10 | |
11 void main(){ | |
12 assert((new MyStruct!()).i==4); | |
13 } | |
14 | |
15 struct MyStruct(){ | |
16 int i=func(0).sizeof; | |
17 } | |
18 | |
19 int func(...); | |
20 |