view test/classes10.d @ 303:4aa2b6753059 trunk

[svn r324] Small indentation fixes. Added end of line to complex.cpp.
author ChristianK
date Wed, 25 Jun 2008 20:42:30 +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");
}