view test/typeinfo5.d @ 71:53d3086b5ad3 trunk

[svn r75] Fixed the init member in custom enum typeinfo. I don't see any way this could actually need emmision though :/
author lindquist
date Sun, 28 Oct 2007 19:48:57 +0100
parents 2c3cd3596187
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);
}