annotate run/bug_todt_194_B.d @ 353:0eb25b549476

fixed precedence problem Walter <walter@digitalmars.com> 2005-03-22 mail:008901c52ec3$f6857910$0200a8c0@colossus
author thomask
date Tue, 22 Mar 2005 11:41:47 +0000
parents 8a0f597f549a
children b8c0195059d9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
1 // $HeadURL$
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
2 // $Date$
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
3 // $Author$
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
4
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
5 // @author@ zwang <nehzgnaw@gmail.com>
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
6 // @date@ 2005-02-03
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
7 // @uri@ news:cttjcg$44f$1@digitaldaemon.com
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
8
266
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
9 module dstress.run.bug_todt_194_B;
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
10
266
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
11 int main(){
353
0eb25b549476 fixed precedence problem
thomask
parents: 266
diff changeset
12 assert((new MyStruct!()).i==int.sizeof);
266
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
13 return 0;
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
14 }
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
15
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
16 struct MyStruct(){
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
17 int i=func(0).sizeof;
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
18 }
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
19
266
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
20 int func(...){
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
21 return 0;
8a0f597f549a fixed bug_todt_194
thomask
parents: 265
diff changeset
22 }
265
fd1663a1f2dd new'ing a templated struct
thomask
parents:
diff changeset
23