Mercurial > projects > ldc
view tests/mini/classinfo2.d @ 913:29c0d1194033
Fix #198 and #199 by making CTFE on static struct initializers work.
Renamed SymbolDeclaration to StaticStructInitDeclaration to make its usage clearer.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 01 Feb 2009 20:20:56 +0100 |
parents | 1bb99290e03a |
children |
line wrap: on
line source
module classinfo2; class C { } class D : C { } void main() { D d; d = new D; ClassInfo ci = d.classinfo; assert(ci is D.classinfo); }