view test/nested12.d @ 147:0636f6269dfd trunk

[svn r152] Relates to ticket #34. Always emit class definition if it is a template instance. Linkage still needs to be fixed.
author ChristianK
date Thu, 13 Mar 2008 18:37:52 +0100
parents 5825d48b27d1
children 25fa34e899e9
line wrap: on
line source

module nested12;

void main()
{
    func();
}

void func()
{
    void a(int i)
    {
        printf("%d\n", i);
    }

    void b()
    {
        a(42);
    }

    b();
}