musictheory / NilScript

Objective-C-style language superset of JavaScript with a tiny, simple runtime
Other
50 stars 5 forks source link

Typechecker should detect duplicate enum definitions #104

Closed jmarr closed 8 years ago

jmarr commented 8 years ago

Declaring two enums with the same name should log an error about a duplicate enum definition.

Currently, you end up getting "unknown identifier" errors because one enum just clobbers the other.

iccir commented 8 years ago

That was fun to debug :)