mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-16 10:27:05 +02:00
[svn r33] * Added support for assignment to function arguments
This commit is contained in:
+13
@@ -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