view tangotests/c.d @ 171:95f07e3f8bb9 trunk

[svn r187] Fixed missing definitions of instances of imported struct template declarations.
author lindquist
date Tue, 06 May 2008 05:25:53 +0200
parents 1700239cab2e
children 68a7dd38c03c
line wrap: on
line source

class Foo
{
    int i;
}

class Bar : Foo
{
    int j;
}

void func()
{
    scope c = new Bar;
    func2(c);
}

void func2(Bar c)
{
    c.i = 123;
}