view tangotests/a.d @ 296:0548a7720a1b trunk

[svn r317] Convert result of _adEq runtime function to bool to make sure EqualExp returns i1 bool.
author ChristianK
date Mon, 23 Jun 2008 19:08:32 +0200
parents 4c577c2b7229
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();
}