Mercurial > projects > ldc
annotate test/interface7.d @ 120:5ce8ab11e75a trunk
[svn r124] Fixed another D vararg + return in ptr bug.
Fixed some nested function calls failed to resolve the context ptr.
author | lindquist |
---|---|
date | Mon, 26 Nov 2007 07:26:21 +0100 |
parents | 5880c12dba83 |
children | 44a95ac7368a |
rev | line source |
---|---|
114 | 1 module interface7; |
2 | |
3 interface I | |
4 { | |
5 } | |
6 | |
7 class C : I | |
8 { | |
9 } | |
10 | |
11 void main() | |
12 { | |
13 I i = new C; | |
14 ClassInfo ci = i.classinfo; | |
15 char[] name = ci.name; | |
16 printf("ci.name = %.*s\n", name.length, name.ptr); | |
17 ClassInfo cI = I.classinfo; | |
18 name = cI.name; | |
19 printf("cI.name = %.*s\n", name.length, name.ptr); | |
20 assert(ci is cI); | |
21 } |