comparison tangotests/nested1.d @ 259:2e652b8ad1fd trunk

[svn r277] Fixed a nasty bug in delegate expressions. Context pointers to nested functions of the parent, from inside a nested function were invalid.
author lindquist
date Fri, 13 Jun 2008 05:47:28 +0200
parents
children
comparison
equal deleted inserted replaced
258:8dbddae09152 259:2e652b8ad1fd
1 module tangotests.nested1;
2
3 void main()
4 {
5 int i = 42;
6 assert(i == 42);
7 void func()
8 {
9 assert(i == 42);
10 }
11 func();
12 }