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 @@ -35993,6 +35993,9 @@ namespace ts {
35993
35993
}
35994
35994
35995
35995
function checkClassDeclaration(node: ClassDeclaration) {
35996
+ if (some(node.decorators) && some(node.members, p => hasStaticModifier(p) && isPrivateIdentifierClassElementDeclaration(p))) {
35997
+ grammarErrorOnNode(node.decorators[0], Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator);
35998
+ }
35996
35999
if (!node.name && !hasSyntacticModifier(node, ModifierFlags.Default)) {
35997
36000
grammarErrorOnFirstToken(node, Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name);
35998
36001
}
Original file line number Diff line number Diff line change 6350
6350
"Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name." : {
6351
6351
"category" : " Error" ,
6352
6352
"code" : 18035
6353
+ },
6354
+ "Class decorators can't be used with static private identifier. Consider removing the experimental decorator." : {
6355
+ "category" : " Error" ,
6356
+ "code" : 18036
6353
6357
}
6354
6358
}
You can’t perform that action at this time.
0 commit comments