[svn r33] * Added support for assignment to function arguments

This commit is contained in:
Tomas Lindquist Olsen
2007-10-04 13:45:22 +02:00
parent 67f3d8ae60
commit 43d59e151b
5 changed files with 62 additions and 3 deletions

View File

@@ -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
View File

@@ -0,0 +1,13 @@
module bug4;
int func(int i)
{
i += 2;
i -= 3;
return i;
}
void main()
{
assert(func(4) == 3);
}