view tests/mini/compile_nested2.d @ 1638:0de4525a9ed6

Apply workaround for #395 by klickverbot.
author Christian Kamm <kamm incasoftware de>
date Mon, 08 Mar 2010 20:06:08 +0100
parents 94ba810ea2b0
children
line wrap: on
line source

void test(void delegate() spam)
{
    static void foo() // static is the problem
    {
        uint x;
        void peek() { x = 0; }
    }

    void bar()
    {
        spam();
    }
}