TypeScript/tests/cases/compiler/this_inside-enum-should-not-be-allowed.ts

9 lines
228 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
enum TopLevelEnum {
ThisWasAllowedButShouldNotBe = this // Should not be allowed
}
module ModuleEnum {
enum EnumInModule {
WasADifferentError = this // this was handled as if this was in a module
}
}