view test/bug21.d @ 78:2332006e1fa4 trunk

[svn r82] Fixed: Fall-through switch cases were broken.
author lindquist
date Wed, 31 Oct 2007 20:50:21 +0100
parents 6fcc08a4d406
children d9d5d59873d8
line wrap: on
line source

module bug21;

void main()
{
    int i = 42;
    auto a = {
        int j = i*2;
        auto b = {
            return j;
        };
        return b();
    };
    int i2 = a();
    printf("%d\n", i2);
    assert(i2 == i*2);
}