Mercurial > projects > ldc
view test/interface7.d @ 202:56e0c5b1d428 trunk
[svn r218] Added test results for [217]
author | lindquist |
---|---|
date | Mon, 12 May 2008 23:49:07 +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); }