Merge pull request #48954 from a-tarasyuk/fix/48948

fix(48948): constructor can't be the name of class accessors and generators
This commit is contained in:
Daniel Rosenwasser
2022-05-13 12:20:45 -07:00
committed by GitHub
13 changed files with 112 additions and 0 deletions

View File

@@ -966,6 +966,8 @@ namespace ts {
Diagnostics.extends_clause_already_seen.code,
Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,
Diagnostics.Class_constructor_may_not_be_a_generator.code,
Diagnostics.Class_constructor_may_not_be_an_accessor.code,
]);
/**