view test/typeinfo5.d @ 192:67ed21bf16af trunk

[svn r208] const init interface vtbls to nonzero values only for nonabstract classes
author ChristianK
date Mon, 12 May 2008 18:22:55 +0200
parents 53d3086b5ad3
children
line wrap: on
line source

module typeinfo5;

void main()
{
    enum E : uint {
        A,B,C
    }
    auto ti = typeid(E);
    assert(ti.next() is typeid(uint));
    assert(ti.init is null);
}