view test/classes10.d @ 219:761c8352f494 trunk

[svn r235] rough port of GDC's inline assembler code, unfinished
author ChristianK
date Thu, 05 Jun 2008 19:22:37 +0200
parents 56a21f3e5d3e
children
line wrap: on
line source

module classes10;

class C
{
    int i;
    override char[] toString()
    {
        return "foobar";
    }
}

void main()
{
    Object o = new C;
    char[] s = o.toString();
    assert(s == "foobar");
}