view tests/mini/compile_nested2.d @ 1562:95d710d405e3

Fixed compiling with llvm rev > 77732
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Sat, 01 Aug 2009 18:23:52 +0200
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();
    }
}