mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-15 11:45:22 +02:00
[svn r44] Lots of bug fixes.
New array literal support New array ~= operator support (for single element) New with statement support More...
This commit is contained in:
15
test/with1.d
Normal file
15
test/with1.d
Normal file
@@ -0,0 +1,15 @@
|
||||
module with1;
|
||||
struct S
|
||||
{
|
||||
int i;
|
||||
float f;
|
||||
}
|
||||
void main()
|
||||
{
|
||||
S s;
|
||||
with(s)
|
||||
{
|
||||
i = 0;
|
||||
f = 3.4;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user