Mercurial > projects > ldc
view test/interface7.d @ 179:c853a8a04cdc trunk
[svn r195] fixed some tango bugs (tango ticket 1093).
author | lindquist |
---|---|
date | Wed, 07 May 2008 05:45:25 +0200 |
parents | 44a95ac7368a |
children |
line wrap: on
line source
module interface7; extern(C) int printf(char*,...); 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); }