view tangotests/a.d @ 149:4c577c2b7229 trunk

[svn r155] Fixed a bunch of linkage problems (especially with templates)
author lindquist
date Mon, 24 Mar 2008 19:43:02 +0100
parents 1700239cab2e
children
line wrap: on
line source

class Foo
{
    this(int j)
    {
        i = pi = j;
    }

    int i;

private:

    int pi;
}

class Bar : Foo
{
    this(int j)
    {
        super(j);
        baz = 42;
    }

    int baz;
}

void func()
{
    auto bar = new Bar(12);
}

void main()
{
    func();
}