Fixed problem with nested function inside static nested function. see mini/compile_nested2.d. fixes #143 .

This commit is contained in:
Tomas Lindquist Olsen
2008-12-09 14:57:01 +01:00
parent 3c400ff21c
commit 99396c2e7a
2 changed files with 34 additions and 14 deletions

View File

@@ -0,0 +1,13 @@
void test(void delegate() spam)
{
static void foo() // static is the problem
{
uint x;
void peek() { x = 0; }
}
void bar()
{
spam();
}
}