Skip to content

Commit 57d2b47

Browse files
authored
chore: fix parser-test allowlist (#14925)
1 parent bb8774d commit 57d2b47

1 file changed

Lines changed: 7 additions & 22 deletions

File tree

scripts/parser-tests/typescript/allowlist.txt

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,7 @@ exportDeclarationsInAmbientNamespaces2.ts
1111
multipleExports.ts
1212

1313

14-
# 143 valid programs produced a parsing error
15-
16-
#invalid programs did not produce a parsing error
17-
18-
bigintIndex.ts
19-
classExpressionWithDecorator1.ts
20-
collisionArgumentsArrowFunctions.ts # TypeScript doesn't allow a parameter to be named arguments even in non-strict mode, which we don't catch.
21-
collisionArgumentsFunction.ts # TypeScript doesn't allow a parameter to be named arguments even in non-strict mode, which we don't catch.
22-
collisionArgumentsFunctionExpressions.ts # TypeScript doesn't allow a parameter to be named arguments even in non-strict mode, which we don't catch.
23-
dynamicImportTrailingComma.ts
24-
es3-oldStyleOctalLiteralInEnums.ts # We don't support ES3-style octal literal errors.
25-
exportDeclarationsInAmbientNamespaces2.ts
26-
multipleExports.ts
27-
28-
29-
#valid programs produced a parsing error
14+
# 139 valid programs produced a parsing error
3015

3116
ArrowFunctionExpression1.ts
3217
MemberAccessorDeclaration15.ts
@@ -94,8 +79,8 @@ exportInterfaceClassAndValue.ts
9479
exportSameNameFuncVar.ts
9580
exportSpecifierAndExportedMemberDeclaration.ts
9681
exportSpecifierAndLocalMemberDeclaration.ts
97-
exportSpecifierForAGlobal.ts
98-
exportSpecifierReferencingOuterDeclaration2.ts
82+
exportSpecifierForAGlobal.ts # We handle this fine, but it doesn't consider the different files together
83+
exportSpecifierReferencingOuterDeclaration2.ts # We handle this fine, but it doesn't consider the different files together
9984
expressionsForbiddenInParameterInitializers.ts
10085
extendsClauseAlreadySeen.ts
10186
extendsClauseAlreadySeen2.ts
@@ -120,7 +105,7 @@ indexTypeCheck.ts
120105
indexWithoutParamType.ts
121106
indexerSignatureWithRestParam.ts
122107
interfaceMayNotBeExtendedWitACall.ts
123-
interfaceNaming1.ts
108+
interfaceNaming1.ts # We correctly identify this error, but we can't bring it in without bringing a bunch of other tests too.
124109
interfaceWithImplements1.ts
125110
jsxAttributeMissingInitializer.tsx
126111
jsxAttributeWithoutExpressionReact.tsx
@@ -151,9 +136,9 @@ parameterInitializerBeforeDestructuringEmit.ts
151136
parameterPropertyOutsideConstructor.ts
152137
parserConstructorDeclaration12.ts
153138
reExportGlobalDeclaration1.ts
154-
reExportGlobalDeclaration2.ts
155-
reExportGlobalDeclaration3.ts
156-
reExportGlobalDeclaration4.ts
139+
reExportGlobalDeclaration2.ts # We handle this fine, but it doesn't consider the different files together
140+
reExportGlobalDeclaration3.ts # We handle this fine, but it doesn't consider the different files together
141+
reExportGlobalDeclaration4.ts # We handle this fine, but it doesn't consider the different files together
157142
reExportUndefined1.ts
158143
readonlyInNonPropertyParameters.ts
159144
redeclareParameterInCatchBlock.ts

0 commit comments

Comments
 (0)