mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
Change the error message
This commit is contained in:
@@ -16504,7 +16504,7 @@ namespace ts {
|
||||
if (!hasParseDiagnostics(sourceFile)) {
|
||||
const start = getSpanOfTokenAtPosition(sourceFile, node.pos).start;
|
||||
const end = node.statement.pos;
|
||||
grammarErrorAtPos(sourceFile, start, end - start, Diagnostics.Unsupported_with_statement_all_symbols_within_a_with_block_will_be_resolved_to_any);
|
||||
grammarErrorAtPos(sourceFile, start, end - start, Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1279,7 +1279,7 @@
|
||||
"category": "Error",
|
||||
"code": 2409
|
||||
},
|
||||
"Unsupported 'with' statement, all symbols within a 'with' block will be resolved to 'any'.": {
|
||||
"The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.": {
|
||||
"category": "Error",
|
||||
"code": 2410
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user