view tangotests/c.d @ 138:aeddd4d533b3 trunk

[svn r142] minor fix to dynamic casts. added a few missed files.
author lindquist
date Fri, 18 Jan 2008 20:13:19 +0100
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;
}