Mercurial > projects > ldc
view test/structs4.d @ 24:25bb577878e8 trunk
[svn r28] * Fixed accessing aggregate fields. it was still not quite right. hopefully is now :)
author | lindquist |
---|---|
date | Thu, 04 Oct 2007 10:13:21 +0200 |
parents | |
children | b706170e24a9 |
line wrap: on
line source
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);} }