Skip to content

Commit 131cf47

Browse files
Josh Goldbergmhegazy
Josh Goldberg
authored andcommitted
Allowed trailing commas in type parameter/argument lists (#20599)
This change is only one source file and one error file... there must be something I'm missing!?
1 parent 85b32ed commit 131cf47

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25736,10 +25736,6 @@ namespace ts {
2573625736
}
2573725737

2573825738
function checkGrammarTypeParameterList(typeParameters: NodeArray<TypeParameterDeclaration>, file: SourceFile): boolean {
25739-
if (checkGrammarForDisallowedTrailingComma(typeParameters)) {
25740-
return true;
25741-
}
25742-
2574325739
if (typeParameters && typeParameters.length === 0) {
2574425740
const start = typeParameters.pos - "<".length;
2574525741
const end = skipTrivia(file.text, typeParameters.end) + ">".length;

tests/baselines/reference/typeParameterListWithTrailingComma1.errors.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)