aboutsummaryrefslogtreecommitdiff
path: root/tests/typeerrors/enum_other.zc
blob: ffa36d73b55985a04902993b4d18183b214d9afb (plain) (blame)
1
2
3
4
5
6
7
namespace;

// expect: type error: initializer: expected color, got size
typecheck on;
enum color { RED, GREEN = 5, BLUE };
enum size { SMALL, LARGE };
int main() { color c = size.LARGE; return c; }