mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
fix(38722): change error message for use-before-declaration on const enum (#38728)
This commit is contained in:
1 parent
bfa1744586
commit
6214bd29f3
2 files changed
+3
-3
No files matched your search
@@ -2287,7 +2287,7 @@ namespace ts {
|
||||
else {
|
||||
Debug.assert(!!(result.flags & SymbolFlags.ConstEnum));
|
||||
if (compilerOptions.preserveConstEnums) {
|
||||
diagnosticMessage = error(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName);
|
||||
diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user