comparison test/structs5.d @ 25:12fd8ce55d9c trunk

[svn r29] * Fixed structs inside struct literals
author lindquist
date Thu, 04 Oct 2007 10:22:56 +0200
parents
children
comparison
equal deleted inserted replaced
24:25bb577878e8 25:12fd8ce55d9c
1 module structs5;
2
3 void main()
4 {
5 {S s = S();}
6 {T t = T(1);}
7 {U u = U();}
8 }
9
10 struct S
11 {
12 }
13
14 struct T
15 {
16 int i;
17 }
18
19 struct U
20 {
21 S s;
22 long l;
23 }