[svn r28] * Fixed accessing aggregate fields. it was still not quite right. hopefully is now :)

This commit is contained in:
Tomas Lindquist Olsen
2007-10-04 10:13:21 +02:00
parent 53038b0f5e
commit 24c3e2649a
5 changed files with 47 additions and 24 deletions

26
test/structs4.d Normal file
View File

@@ -0,0 +1,26 @@
module structs4;
struct S{
int a;
T t;
}
struct T{
int b;
U u;
}
struct U{
int c;
}
void main()
{
S s;
s.a = 3;
s.t = T.init;
s.t.b = 4;
s.t.u = U.init;
s.t.u.c = 5;
{assert(s.t.u.c == 5);}
}