We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e2912 commit 8af5910Copy full SHA for 8af5910
src/compiler/checker.ts
@@ -1280,7 +1280,7 @@ namespace ts {
1280
else if (result.flags & SymbolFlags.Class) {
1281
error(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationNameToString(getNameOfDeclaration(declaration)));
1282
}
1283
- else if (result.flags & SymbolFlags.Enum) {
+ else if (result.flags & SymbolFlags.RegularEnum) {
1284
error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationNameToString(getNameOfDeclaration(declaration)));
1285
1286
0 commit comments