[svn r53] added basic support for delegate literals. if you access outer variables you get a broken module

This commit is contained in:
Tomas Lindquist Olsen
2007-10-19 17:43:46 +02:00
parent 6445254a7b
commit f16a0c35b5
3 changed files with 49 additions and 3 deletions

7
test/bug19.d Normal file
View File

@@ -0,0 +1,7 @@
module bug19;
void main()
{
auto dg = (int i) { return i*2; };
assert(dg(2) == 4);
}