view test/interface7.d @ 129:8096ba7082db trunk

[svn r133] Fixed some problems with inlining not happening :P Fixed problems with certain cases of deeply nested classes/functions.
author lindquist
date Fri, 28 Dec 2007 22:55:24 +0100
parents 5880c12dba83
children 44a95ac7368a
line wrap: on
line source

module interface7;

interface I
{
}

class C : I
{
}

void main()
{
    I i = new C;
    ClassInfo ci = i.classinfo;
    char[] name = ci.name;
    printf("ci.name = %.*s\n", name.length, name.ptr);
    ClassInfo cI = I.classinfo;
    name = cI.name;
    printf("cI.name = %.*s\n", name.length, name.ptr);
    assert(ci is cI);
}