Files
ldc/test/with1.d
Tomas Lindquist Olsen c31af3dc2d [svn r191] Fixed: array literals did not support all type/storage combinations.
Fixed: with expression had broke somewhere along the way.
2008-05-07 00:01:13 +02:00

18 lines
178 B
D

module with1;
struct S
{
int i;
float f;
}
void main()
{
S s;
with(s)
{
i = 0;
f = 3.5;
}
assert(s.i == 0);
assert(s.f == 3.5);
}