Mercurial > projects > ldc
view test/with1.d @ 178:8873b7f1457e trunk
[svn r194] Fixed: string literal constant expressions with static array type was broken.
author | lindquist |
---|---|
date | Wed, 07 May 2008 05:02:48 +0200 |
parents | c44e6a711885 |
children |
line wrap: on
line source
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); }