Mercurial > projects > ldc
view test/with1.d @ 260:d69d4543c441 trunk
[svn r278] Added test results for [277]
author | lindquist |
---|---|
date | Fri, 13 Jun 2008 07:50:55 +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); }