mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-12 06:49:02 +02:00
Fixed problem with nested function inside static nested function. see mini/compile_nested2.d. fixes #143 .
This commit is contained in:
13
tests/mini/compile_nested2.d
Normal file
13
tests/mini/compile_nested2.d
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user