view test/enum1.d @ 72:d7e764e62462 trunk

[svn r76] Fixed: TypeInfo for structs. Fixed: PostExp was unable to allocate storage for parameters. Fixed: Many types of functions and delegates were broken. Misc cleanups.
author lindquist
date Mon, 29 Oct 2007 03:28:12 +0100
parents 0c77619e803b
children
line wrap: on
line source

module enum1;

void main()
{
    enum {
        HELLO,
        WORLD
    }

    assert(HELLO == 0);
    assert(WORLD == 1);
}