view tests/mini/compile_nested2.d @ 1513:8a5570ddad25

Emit file and line info for 'Array operation ... not recognized' error. Fixes #326.
author Christian Kamm <kamm incasoftware de>
date Mon, 22 Jun 2009 19:31:25 +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();
    }
}