[svn r71] Fixed accessing parent function arguments from inside nested delegates.

Some cleanups in VarExp::toElem.
This commit is contained in:
Tomas Lindquist Olsen
2007-10-28 02:46:06 +02:00
parent a5d3910b57
commit feea94424c
5 changed files with 87 additions and 74 deletions

13
test/nested1.d Normal file
View File

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