File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -35900,6 +35900,9 @@ namespace ts {
35900
35900
}
35901
35901
35902
35902
function checkClassDeclaration(node: ClassDeclaration) {
35903
+ if (some(node.decorators) && some(node.members, p => hasStaticModifier(p) && isPrivateIdentifierClassElementDeclaration(p))) {
35904
+ grammarErrorOnNode(node.decorators[0], Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator);
35905
+ }
35903
35906
if (!node.name && !hasSyntacticModifier(node, ModifierFlags.Default)) {
35904
35907
grammarErrorOnFirstToken(node, Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name);
35905
35908
}
Original file line number Diff line number Diff line change 6319
6319
"Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name." : {
6320
6320
"category" : " Error" ,
6321
6321
"code" : 18035
6322
+ },
6323
+ "Class decorators can't be used with static private identifier. Consider removing the experimental decorator." : {
6324
+ "category" : " Error" ,
6325
+ "code" : 18036
6322
6326
}
6323
6327
}
You can’t perform that action at this time.
0 commit comments