view test/classes10.d @ 293:ebfa488f4abc trunk

[svn r314] Get correct value type for newing of multidimensional dynamic arrays. Fixes array_initialization_26_E.
author ChristianK
date Sun, 22 Jun 2008 15:21:34 +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");
}