fix(45049): fix diagnostic for missing property initializer (#45052)

This commit is contained in:
Oleksandr T
2021-07-17 01:10:42 +03:00
committed by GitHub
parent ba2e2600c8
commit 1aac3555f7
4 changed files with 6 additions and 6 deletions

View File

@@ -1400,7 +1400,7 @@
"category": "Error",
"code": 1441
},
"Missing '=' before default property value.": {
"Expected '=' for property initializer.": {
"category": "Error",
"code": 1442
},

View File

@@ -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;
}