Mercurial > projects > ldc
view test/classinfo4.d @ 274:9f228c1e5311 trunk
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
Test results for current revision added.
author | ChristianK |
---|---|
date | Thu, 19 Jun 2008 13:54:31 +0200 |
parents | 368547b1cbe6 |
children |
line wrap: on
line source
module classinfo4; class C { } class D : C { this() { } ~this() { } } template T() { ~this() { } } class E : D { this() { } ~this() { } mixin T; } void main() { assert(C.classinfo.defaultConstructor is null); assert(C.classinfo.destructor is null); assert(D.classinfo.defaultConstructor !is null); assert(D.classinfo.destructor !is null); assert(E.classinfo.defaultConstructor !is null); assert(E.classinfo.destructor !is null); }