mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
18 lines
178 B
D
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);
|
|
}
|