mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 09:03:15 +01:00
[svn r33] * Added support for assignment to function arguments
This commit is contained in:
@@ -6,6 +6,12 @@ struct S
|
||||
char[5] ch;
|
||||
}
|
||||
|
||||
class C
|
||||
{
|
||||
int[] arr;
|
||||
char[4] crs;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
S s;
|
||||
|
||||
13
test/bug4.d
Normal file
13
test/bug4.d
Normal file
@@ -0,0 +1,13 @@
|
||||
module bug4;
|
||||
|
||||
int func(int i)
|
||||
{
|
||||
i += 2;
|
||||
i -= 3;
|
||||
return i;
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
assert(func(4) == 3);
|
||||
}
|
||||
Reference in New Issue
Block a user