comparison test/bug4.d @ 29:253a5fc4033a trunk

[svn r33] * Added support for assignment to function arguments
author lindquist
date Thu, 04 Oct 2007 13:45:22 +0200
parents
children
comparison
equal deleted inserted replaced
28:1c80c18f3c82 29:253a5fc4033a
1 module bug4;
2
3 int func(int i)
4 {
5 i += 2;
6 i -= 3;
7 return i;
8 }
9
10 void main()
11 {
12 assert(func(4) == 3);
13 }