mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-17 00:34:47 -05:00
fix(45049): fix diagnostic for missing property initializer (#45052)
This commit is contained in:
@@ -1400,7 +1400,7 @@
|
||||
"category": "Error",
|
||||
"code": 1441
|
||||
},
|
||||
"Missing '=' before default property value.": {
|
||||
"Expected '=' for property initializer.": {
|
||||
"category": "Error",
|
||||
"code": 1442
|
||||
},
|
||||
|
||||
@@ -1664,7 +1664,7 @@ namespace ts {
|
||||
parseErrorAtCurrentToken(Diagnostics._0_expected, tokenToString(SyntaxKind.SemicolonToken));
|
||||
}
|
||||
else {
|
||||
parseErrorAtCurrentToken(Diagnostics.Missing_before_default_property_value);
|
||||
parseErrorAtCurrentToken(Diagnostics.Expected_for_property_initializer);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user