diff --git a/.github/scripts/clone-parallel.mjs b/.github/scripts/clone-parallel.mjs index 7da3206a4d169..281a5bcd465b6 100644 --- a/.github/scripts/clone-parallel.mjs +++ b/.github/scripts/clone-parallel.mjs @@ -11,11 +11,11 @@ import { dirname, join } from "node:path"; // Submodule commit SHAs - updated automatically by .github/workflows/update_submodules.yml // NOTE: Prettier version is now pinned to `v3.8.0` (not updated by workflow above), Update manually as needed -const TEST262_SHA = "dd6138f9bc1aa2c3ba9cbf54452049b9a92c4e13"; -const BABEL_SHA = "92c052dc449eeb7d9562d5852d1ea295d6c86eca"; -const TYPESCRIPT_SHA = "95e3aaa90341b516e868bf2300b1da5d07103f1e"; +const TEST262_SHA = "3180f5a9f68a9e22b68ab8572d4465846e872709"; +const BABEL_SHA = "ad32683b51cf77ff5271c1a0fbe9c3541183dc45"; +const TYPESCRIPT_SHA = "ad04bf7488384a5dcdf7d250ccb8e5263021a8ff"; const PRETTIER_SHA = "812a4d0071270f61a7aa549d625b618be7e09d71"; -const ESTREE_CONFORMANCE_SHA = "32501475c99fc022a93c80bc6ce1a607f21ecc66"; +const ESTREE_CONFORMANCE_SHA = "a53e1b22356aae3c859753ea249390deee9f015e"; const NODE_COMPAT_TABLE_SHA = "499beb6f1daa36f10c26b85a7f3ec3b3448ded23"; const repoRoot = join(import.meta.dirname, "..", ".."); diff --git a/napi/parser/test/parse-raw.test.ts b/napi/parser/test/parse-raw.test.ts index ca3668ef587cd..5da3663535592 100644 --- a/napi/parser/test/parse-raw.test.ts +++ b/napi/parser/test/parse-raw.test.ts @@ -111,7 +111,13 @@ const test262FixturePaths = []; for (let path of await readdir(ACORN_TEST262_DIR_PATH, { recursive: true })) { if (!path.endsWith(".json")) continue; path = path.slice(0, -2); - if (test262FailPaths.has(path) || path.startsWith("language/comments/hashbang/")) continue; + if ( + test262FailPaths.has(path) || + path.startsWith("language/comments/hashbang/") || + path.includes("annexB/language/expressions/assignmenttargettype") + ) { + continue; + } test262FixturePaths.push(path); } diff --git a/tasks/coverage/snapshots/codegen_babel.snap b/tasks/coverage/snapshots/codegen_babel.snap index fc2edc0ed8973..1d56bc6d116fc 100644 --- a/tasks/coverage/snapshots/codegen_babel.snap +++ b/tasks/coverage/snapshots/codegen_babel.snap @@ -1,4 +1,4 @@ -commit: 92c052dc +commit: ad32683b codegen_babel Summary: AST Parsed : 2224/2224 (100.00%) diff --git a/tasks/coverage/snapshots/codegen_test262.snap b/tasks/coverage/snapshots/codegen_test262.snap index 1098fd2822550..bf3202323ed9c 100644 --- a/tasks/coverage/snapshots/codegen_test262.snap +++ b/tasks/coverage/snapshots/codegen_test262.snap @@ -1,5 +1,5 @@ -commit: dd6138f9 +commit: 3180f5a9 codegen_test262 Summary: -AST Parsed : 46746/46746 (100.00%) -Positive Passed: 46746/46746 (100.00%) +AST Parsed : 46777/46777 (100.00%) +Positive Passed: 46777/46777 (100.00%) diff --git a/tasks/coverage/snapshots/codegen_typescript.snap b/tasks/coverage/snapshots/codegen_typescript.snap index 216b9d8cc7b96..f30dc11649c5f 100644 --- a/tasks/coverage/snapshots/codegen_typescript.snap +++ b/tasks/coverage/snapshots/codegen_typescript.snap @@ -1,5 +1,5 @@ -commit: 95e3aaa9 +commit: ad04bf74 codegen_typescript Summary: -AST Parsed : 9840/9840 (100.00%) -Positive Passed: 9840/9840 (100.00%) +AST Parsed : 9834/9834 (100.00%) +Positive Passed: 9834/9834 (100.00%) diff --git a/tasks/coverage/snapshots/estree_test262.snap b/tasks/coverage/snapshots/estree_test262.snap index 79544c2863f08..dc99236bc2503 100644 --- a/tasks/coverage/snapshots/estree_test262.snap +++ b/tasks/coverage/snapshots/estree_test262.snap @@ -1,8 +1,8 @@ -commit: dd6138f9 +commit: 3180f5a9 estree_test262 Summary: -AST Parsed : 46490/46490 (100.00%) -Positive Passed: 46481/46490 (99.98%) +AST Parsed : 46521/46521 (100.00%) +Positive Passed: 46512/46521 (99.98%) Mismatch: tasks/coverage/test262/test/language/expressions/assignment/fn-name-lhs-cover.js Mismatch: tasks/coverage/test262/test/language/expressions/assignment/target-cover-id.js diff --git a/tasks/coverage/snapshots/estree_typescript.snap b/tasks/coverage/snapshots/estree_typescript.snap index 0608633e14c65..ceb69bd2dda43 100644 --- a/tasks/coverage/snapshots/estree_typescript.snap +++ b/tasks/coverage/snapshots/estree_typescript.snap @@ -1,8 +1,16 @@ -commit: 95e3aaa9 +commit: ad04bf74 estree_typescript Summary: -AST Parsed : 9773/9773 (100.00%) -Positive Passed: 9755/9773 (99.82%) +AST Parsed : 9761/9761 (100.00%) +Positive Passed: 9738/9761 (99.76%) +Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/ambientWithStatements.ts +A 'return' statement can only be used within a function body. +Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts +Lexical declaration cannot appear in a single-statement context +Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/constDeclarations-scopes.ts +Lexical declaration cannot appear in a single-statement context +Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/constDeclarations-validContexts.ts +Lexical declaration cannot appear in a single-statement context Mismatch: tasks/coverage/typescript/tests/cases/compiler/moduleDetectionIsolatedModulesCjsFileScope.ts Mismatch: tasks/coverage/typescript/tests/cases/compiler/moduleNodeImportRequireEmit.ts @@ -39,3 +47,5 @@ Mismatch: tasks/coverage/typescript/tests/cases/conformance/node/esmModuleExport Mismatch: tasks/coverage/typescript/tests/cases/conformance/nonjsExtensions/declarationFilesForNodeNativeModules.ts +Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts +A 'return' statement can only be used within a function body. diff --git a/tasks/coverage/snapshots/formatter_babel.snap b/tasks/coverage/snapshots/formatter_babel.snap index 6942f11f0b1c3..fa29b9dc31e02 100644 --- a/tasks/coverage/snapshots/formatter_babel.snap +++ b/tasks/coverage/snapshots/formatter_babel.snap @@ -1,4 +1,4 @@ -commit: 92c052dc +commit: ad32683b formatter_babel Summary: AST Parsed : 2224/2224 (100.00%) diff --git a/tasks/coverage/snapshots/formatter_test262.snap b/tasks/coverage/snapshots/formatter_test262.snap index 81f0f430ddd2e..81f9ecab2ada4 100644 --- a/tasks/coverage/snapshots/formatter_test262.snap +++ b/tasks/coverage/snapshots/formatter_test262.snap @@ -1,8 +1,8 @@ -commit: dd6138f9 +commit: 3180f5a9 formatter_test262 Summary: -AST Parsed : 46746/46746 (100.00%) -Positive Passed: 46737/46746 (99.98%) +AST Parsed : 46777/46777 (100.00%) +Positive Passed: 46768/46777 (99.98%) Mismatch: tasks/coverage/test262/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR-LF.js Mismatch: tasks/coverage/test262/test/built-ins/Function/prototype/toString/line-terminator-normalisation-CR.js diff --git a/tasks/coverage/snapshots/formatter_typescript.snap b/tasks/coverage/snapshots/formatter_typescript.snap index ae8997a65a88e..11f86130dc8eb 100644 --- a/tasks/coverage/snapshots/formatter_typescript.snap +++ b/tasks/coverage/snapshots/formatter_typescript.snap @@ -1,8 +1,8 @@ -commit: 95e3aaa9 +commit: ad04bf74 formatter_typescript Summary: -AST Parsed : 9840/9840 (100.00%) -Positive Passed: 9788/9840 (99.47%) +AST Parsed : 9834/9834 (100.00%) +Positive Passed: 9782/9834 (99.47%) Mismatch: tasks/coverage/typescript/tests/cases/compiler/amdLikeInputDeclarationEmit.ts Mismatch: tasks/coverage/typescript/tests/cases/compiler/castExpressionParentheses.ts diff --git a/tasks/coverage/snapshots/minifier_babel.snap b/tasks/coverage/snapshots/minifier_babel.snap index 2191069591fbe..6662775b9f4f0 100644 --- a/tasks/coverage/snapshots/minifier_babel.snap +++ b/tasks/coverage/snapshots/minifier_babel.snap @@ -1,4 +1,4 @@ -commit: 92c052dc +commit: ad32683b minifier_babel Summary: AST Parsed : 1783/1783 (100.00%) diff --git a/tasks/coverage/snapshots/minifier_test262.snap b/tasks/coverage/snapshots/minifier_test262.snap index f868de3c3b0fb..fa6b0c1c0a62b 100644 --- a/tasks/coverage/snapshots/minifier_test262.snap +++ b/tasks/coverage/snapshots/minifier_test262.snap @@ -1,8 +1,8 @@ -commit: dd6138f9 +commit: 3180f5a9 minifier_test262 Summary: -AST Parsed : 44335/44335 (100.00%) -Positive Passed: 44328/44335 (99.98%) +AST Parsed : 44366/44366 (100.00%) +Positive Passed: 44359/44366 (99.98%) Compress: tasks/coverage/test262/test/intl402/Temporal/PlainDate/prototype/toLocaleString/lone-options-accepted.js Compress: tasks/coverage/test262/test/intl402/Temporal/PlainMonthDay/prototype/toLocaleString/lone-options-accepted.js diff --git a/tasks/coverage/snapshots/parser_babel.snap b/tasks/coverage/snapshots/parser_babel.snap index b6b106a02762c..9f2daf9c78707 100644 --- a/tasks/coverage/snapshots/parser_babel.snap +++ b/tasks/coverage/snapshots/parser_babel.snap @@ -1,4 +1,4 @@ -commit: 92c052dc +commit: ad32683b parser_babel Summary: AST Parsed : 2224/2224 (100.00%) diff --git a/tasks/coverage/snapshots/parser_test262.snap b/tasks/coverage/snapshots/parser_test262.snap index 73f190523229d..7c7008bb8bd86 100644 --- a/tasks/coverage/snapshots/parser_test262.snap +++ b/tasks/coverage/snapshots/parser_test262.snap @@ -1,8 +1,8 @@ -commit: dd6138f9 +commit: 3180f5a9 parser_test262 Summary: -AST Parsed : 46746/46746 (100.00%) -Positive Passed: 46746/46746 (100.00%) +AST Parsed : 46777/46777 (100.00%) +Positive Passed: 46777/46777 (100.00%) Negative Passed: 4588/4588 (100.00%) × '0'-prefixed octal literals and octal escape sequences are deprecated @@ -26679,13 +26679,12 @@ Negative Passed: 4588/4588 (100.00%) ╰──── × Identifier `f` has already been declared - ╭─[test262/test/language/statements/await-using/redeclaration-error-from-within-strict-mode-function-await-using.js:15:49] - 14 │ $DONOTEVALUATE(); - 15 │ (async function() { 'use strict'; { await using f = null; var f; } }) + ╭─[test262/test/language/statements/await-using/redeclaration-error-from-within-strict-mode-function-await-using.js:16:49] + 15 │ $DONOTEVALUATE(); + 16 │ (async function() { 'use strict'; { await using f = null; var f; } }) · ┬ ┬ · │ ╰── It can not be redeclared here · ╰── `f` has already been declared here - 16 │ ╰──── × Using declarations may not have binding patterns. @@ -39328,13 +39327,12 @@ Negative Passed: 4588/4588 (100.00%) ╰──── × Identifier `f` has already been declared - ╭─[test262/test/language/statements/using/redeclaration-error-from-within-strict-mode-function-using.js:15:37] - 14 │ $DONOTEVALUATE(); - 15 │ (function() { 'use strict'; { using f = null; var f; } }) + ╭─[test262/test/language/statements/using/redeclaration-error-from-within-strict-mode-function-using.js:16:37] + 15 │ $DONOTEVALUATE(); + 16 │ (function() { 'use strict'; { using f = null; var f; } }) · ┬ ┬ · │ ╰── It can not be redeclared here · ╰── `f` has already been declared here - 16 │ ╰──── × Cannot use `await` as an identifier in an async context diff --git a/tasks/coverage/snapshots/parser_typescript.snap b/tasks/coverage/snapshots/parser_typescript.snap index 8d0e216ed9d9a..cdcab89939cf2 100644 --- a/tasks/coverage/snapshots/parser_typescript.snap +++ b/tasks/coverage/snapshots/parser_typescript.snap @@ -1,9 +1,9 @@ -commit: 95e3aaa9 +commit: ad04bf74 parser_typescript Summary: -AST Parsed : 9840/9840 (100.00%) -Positive Passed: 9840/9840 (100.00%) -Negative Passed: 1530/2558 (59.81%) +AST Parsed : 9831/9834 (99.97%) +Positive Passed: 9820/9834 (99.86%) +Negative Passed: 1518/2578 (58.88%) Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/FunctionDeclaration3.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/FunctionDeclaration4.ts @@ -32,7 +32,7 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/amdDependenc Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/anyIdenticalToItself.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/argumentsReferenceInObjectLiteral_Js.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/arrayConcatMap.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/assignmentCompatFunctionsWithOptionalArgs.ts @@ -68,10 +68,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/binaryArithm Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/bindingPatternCannotBeOnlyInferenceSource.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/blockScopedSameNameFunctionDeclarationES5.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/blockScopedSameNameFunctionDeclarationES6.ts - Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/callOverloads1.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/callOverloads2.ts @@ -132,12 +128,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/cloduleWithD Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/cloduleWithPriorInstantiatedModule.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/collisionArgumentsArrowFunctions.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/collisionArgumentsFunction.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/collisionArgumentsFunctionExpressions.ts - Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/collisionExportsRequireAndAlias.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/collisionExportsRequireAndClass.ts @@ -244,6 +234,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/detachedComm Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/detachedCommentAtStartOfFunctionBody2.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/didYouMeanSuggestionErrors.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/downlevelLetConst16.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/duplicateDefaultExport.ts @@ -472,6 +464,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/importAndVar Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/importAndVariableDeclarationConflict4.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/importAssertionsDeprecated.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/importDeclWithClassModifiers.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/importWithTrailingSlash.ts @@ -486,6 +480,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/inexistentPr Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/inferFromGenericFunctionReturnTypes1.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/inferentiallyTypingAnEmptyArray.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/innerAliases.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/instanceofOnInstantiationExpression.ts @@ -526,6 +522,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/invalidStati Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/invokingNonGenericMethodWithTypeArguments1.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/isArray.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/isLiteral1.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/isolatedModulesExportDeclarationType.ts @@ -578,6 +576,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/lambdaPropSe Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/lastPropertyInLiteralWins.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/letAsIdentifier2.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/letDeclarations-scopes-duplicates2.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/letDeclarations-scopes-duplicates3.ts @@ -590,12 +590,22 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/letDeclarati Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/letDeclarations-scopes-duplicates7.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/letInVarDeclOfForIn_ES5.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/letInVarDeclOfForIn_ES6.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/letInVarDeclOfForOf_ES5.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/letInVarDeclOfForOf_ES6.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/longObjectInstantiationChain1.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/longObjectInstantiationChain2.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/longObjectInstantiationChain3.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/mapUpsert.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/maxNodeModuleJsDepthDefaultsToZero.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/memberOverride.ts @@ -618,6 +628,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/mergedDeclar Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/mergedDeclarations3.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/metadataImportType.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/missingDomElement_UsingDomLib.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/missingDomElements.ts @@ -714,6 +726,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/omittedExpre Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/operationsAvailableOnPromisedType.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/operatorAddNullUndefined.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/optionalParamReferencingOtherParams2.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/optionalParamReferencingOtherParams3.ts @@ -820,6 +834,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/reservedName Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/reservedNameOnModuleImportWithInterface.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/restUnion.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/returnValueInSetter.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/scopeCheckExtendedClassInsideStaticMethod1.ts @@ -834,8 +850,14 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/setterWithRe Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/shorthandPropertyUndefined.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/sourceMapValidationDecorators.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/sourceMapValidationLabeled.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/spyComparisonChecking.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/staticAnonymousTypeNotReferencingTypeParameter.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/staticClassMemberError.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/staticInstanceResolution4.ts @@ -872,6 +894,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/targetTypeTe Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/templateLiteralsInTypes.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/temporal.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/thisBinding.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/thisInModule.ts @@ -910,6 +934,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/typeParamete Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/typeParameterWithInvalidConstraintType.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/typePredicateStructuralMatch.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/typeValueConflict1.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/typeValueConflict2.ts @@ -942,8 +968,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/unknownSymbo Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/useBeforeDeclaration_classDecorators.2.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/useUnknownInCatchVariables01.ts - Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/varNameConflictsWithImportInDifferentPartOfModule.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/compiler/variableDeclaratorResolvedDuringContextualTyping.ts @@ -1096,8 +1120,16 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/decorator Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor1.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor2.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/decorators/class/constructor/decoratorOnClassConstructor3.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/decorators/class/constructor/parameter/decoratorOnClassConstructorParameter1.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/decorators/class/method/decoratorOnClassMethod11.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/dynamicImport/importCallExpressionInScriptContext1.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/enums/enumConstantMembers.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/enums/enumMergingErrors.ts @@ -1156,30 +1188,10 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrow Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments04.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts - Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments10.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments15.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17.ts - Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments19.ts @@ -1192,8 +1204,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/class Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/classDeclaration/superCallBeforeThisAccessing7.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/classExpressions/typeArgumentInferenceWithClassExpression2.ts - Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/computedProperties/computedPropertyNames15_ES5.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/computedProperties/computedPropertyNames15_ES6.ts @@ -1256,6 +1266,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/destr Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration1ES5iterable.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration8.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/destructuring/destructuringSpread.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/destructuring/missingAndExcessProperties.ts @@ -1272,8 +1284,16 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/destr Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/destructuring/restElementWithBindingPattern2.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration11_es6.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration13_es6.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration3_es6.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration4_es6.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/functionDeclarations/FunctionDeclaration8_es6.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/modules/defaultExportsCannotMerge04.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/modules/multipleDefaultExports01.ts @@ -1294,6 +1314,12 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/templ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/templates/templateStringInDeleteExpressionES6.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/yieldExpressions/YieldExpression1_es6.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/yieldExpressions/YieldExpression8_es6.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/yieldExpressions/YieldStarExpression1_es6.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/yieldExpressions/generatorInAmbientContext1.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/es6/yieldExpressions/generatorInAmbientContext2.ts @@ -1338,10 +1364,26 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/esDecorat Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/asOperator/asOperatorAmbiguity.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/assignmentOperator/compoundAdditionAssignmentLHSCanBeAssigned.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/assignmentOperator/compoundAdditionAssignmentWithInvalidOperands.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/assignmentOperator/compoundArithmeticAssignmentLHSCanBeAssigned.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/assignmentOperator/compoundArithmeticAssignmentWithInvalidOperands.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithNullValueAndInvalidOperator.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithNullValueAndValidOperator.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithOnlyNullValueOrUndefinedValue.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithTypeParameter.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithUndefinedValueAndInvalidOperands.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/binaryOperators/additionOperator/additionOperatorWithUndefinedValueAndValidOperator.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithNullValueAndInvalidOperands.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/binaryOperators/arithmeticOperator/arithmeticOperatorWithNullValueAndValidOperands.ts @@ -1358,6 +1400,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressio Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/elementAccess/letIdentifierInElementAccess01.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/functionCalls/overloadResolutionClassConstructors.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/literals/literals.ts @@ -1392,12 +1436,18 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressio Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/typeGuards/typeGuardFunctionOfFormThisErrors.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormInstanceOf.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMember.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/typeGuards/typeGuardRedundancy.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/typeGuards/typeGuardsInIfStatement.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/typeGuards/typeGuardsInRightOperandOfOrOrOperator.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/typeGuards/typeGuardsWithAny.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/typeGuards/typeGuardsWithInstanceOf.ts @@ -1418,8 +1468,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressio Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/unaryOperators/decrementOperator/decrementOperatorWithEnumType.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithAnyOtherType.ts - Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithBooleanType.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithEnumType.ts @@ -1428,10 +1476,16 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressio Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/unaryOperators/deleteOperator/deleteOperatorWithStringType.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/unaryOperators/logicalNotOperator/logicalNotOperatorWithAnyOtherType.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/unaryOperators/negateOperator/negateOperatorWithAnyOtherType.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/unaryOperators/plusOperator/plusOperatorWithAnyOtherType.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/unaryOperators/typeofOperator/typeofOperatorWithAnyOtherType.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/expressions/unaryOperators/voidOperator/voidOperatorWithAnyOtherType.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/externalModules/circularReference.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/externalModules/duplicateExportAssignments.ts @@ -1516,6 +1570,14 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/interface Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/interfaces/declarationMerging/twoInterfacesDifferentRootModule2.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/interfaces/interfaceDeclarations/asiPreventsParsingAsInterface01.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/interfaces/interfaceDeclarations/asiPreventsParsingAsInterface02.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/interfaces/interfaceDeclarations/asiPreventsParsingAsInterface03.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/interfaces/interfaceDeclarations/asiPreventsParsingAsInterface04.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/interfaces/interfacesExtendingClasses/implementingAnInterfaceExtendingClassWithPrivates2.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/internalModules/DeclarationMerging/ClassAndModuleThatMergeWithModulesExportedGenericFunctionAndGenericClassStaticFunctionOfTheSameName.ts @@ -1682,14 +1744,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/node/node Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/node/nodeModulesGeneratedNameCollisions.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/node/nodeModulesImportAssertions.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmit1.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmit2.ts - -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/node/nodeModulesImportModeDeclarationEmitErrors1.ts - Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/node/nodeModulesJson.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/node/nodeModulesNoDirectoryModule.ts @@ -1726,6 +1780,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ec Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnumDeclaration3.d.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserCommaInTypeMemberList2.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock1.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserModifierOnStatementInBlock2.ts @@ -1828,8 +1884,14 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ec Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/Statements/parserWhileStatement1.d.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode1.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode16.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode3-negative.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode6-negative.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/SuperExpressions/parserSuperExpression1.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/SuperExpressions/parserSuperExpression3.ts @@ -1852,6 +1914,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ec Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/parserRealSource8.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName37.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName4.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName41.ts @@ -1928,8 +1992,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/statement Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/statements/for-ofStatements/ES5For-of29.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/statements/for-ofStatements/ES5For-of31.ts - Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/statements/for-ofStatements/ES5For-of35.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash2.ts @@ -2026,6 +2088,8 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/tup Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/tuple/unionsOfTupleTypes1.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeAliases/interfaceDoesNotDependOnBaseTypes.ts + Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeAliases/intrinsicKeyword.ts Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeAliases/intrinsicTypes.ts @@ -2036,29 +2100,368 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeParameters/typeParameterLists/typeParameterConstModifiers.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeParameters/typeParameterLists/typesWithDuplicateTypeParameters.ts +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeParameters/typeParameterLists/typesWithDuplicateTypeParameters.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignedToUndefined.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeRelationships/comparable/equalityStrictNulls.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeRelationships/typeInference/intraExpressionInferences.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/union/discriminatedUnionTypes2.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/union/unionTypeMembers.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/union/unionTypePropertyAccessibility.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/union/unionTypeReadonly.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/union/unionTypeWithIndexSignature.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsErrors.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsPropertyNames.ts + +Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/witness/witness.ts + +Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/ambientWithStatements.ts + + × TS(1108): A 'return' statement can only be used within a function body. + ╭─[typescript/tests/cases/compiler/ambientWithStatements.ts:11:5] + 10 │ L: var y; + 11 │ return; + · ────── + 12 │ switch (x) { + ╰──── + + × Illegal break statement + ╭─[typescript/tests/cases/compiler/ambientWithStatements.ts:2:5] + 1 │ declare namespace M { + 2 │ break; + · ────── + 3 │ continue; + ╰──── + help: A `break` statement can only be used within an enclosing iteration or switch statement. + + × Illegal continue statement: no surrounding iteration statement + ╭─[typescript/tests/cases/compiler/ambientWithStatements.ts:3:5] + 2 │ break; + 3 │ continue; + · ───────── + 4 │ debugger; + ╰──── + help: A `continue` statement can only be used within an enclosing `for`, `while` or `do while` + + × 'with' statements are not allowed + ╭─[typescript/tests/cases/compiler/ambientWithStatements.ts:25:5] + 24 │ } + 25 │ with (x) { + · ──── + 26 │ } + ╰──── + +Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:3:5] + 2 │ if (true) + 3 │ const c1 = 0; + · ───────────── + 4 │ else + ╰──── + help: Wrap this declaration in a block statement + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:5:5] + 4 │ else + 5 │ const c2 = 0; + · ───────────── + 6 │ + ╰──── + help: Wrap this declaration in a block statement + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:8:5] + 7 │ while (true) + 8 │ const c3 = 0; + · ───────────── + 9 │ + ╰──── + help: Wrap this declaration in a block statement + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:11:5] + 10 │ do + 11 │ const c4 = 0; + · ───────────── + 12 │ while (true); + ╰──── + help: Wrap this declaration in a block statement + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:16:5] + 15 │ with (obj) + 16 │ const c5 = 0; // No Error will be reported here since we turn off all type checking + · ───────────── + 17 │ + ╰──── + help: Wrap this declaration in a block statement + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:19:5] + 18 │ for (var i = 0; i < 10; i++) + 19 │ const c6 = 0; + · ───────────── + 20 │ + ╰──── + help: Wrap this declaration in a block statement + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:22:5] + 21 │ for (var i2 in {}) + 22 │ const c7 = 0; + · ───────────── + 23 │ + ╰──── + help: Wrap this declaration in a block statement + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:25:12] + 24 │ if (true) + 25 │ label: const c8 = 0; + · ───────────── + 26 │ + ╰──── + help: Wrap this declaration in a block statement + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:28:29] + 27 │ while (false) + 28 │ label2: label3: label4: const c9 = 0; + · ───────────── + 29 │ + ╰──── + help: Wrap this declaration in a block statement + + × 'with' statements are not allowed + ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:15:1] + 14 │ var obj; + 15 │ with (obj) + · ──── + 16 │ const c5 = 0; // No Error will be reported here since we turn off all type checking + ╰──── + +Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/constDeclarations-scopes.ts + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-scopes.ts:43:12] + 42 │ if (true) { + 43 │ label: const c = 0; + · ──────────── + 44 │ n = c; + ╰──── + help: Wrap this declaration in a block statement + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-scopes.ts:48:29] + 47 │ while (false) { + 48 │ label2: label3: label4: const c = 0; + · ──────────── + 49 │ n = c; + ╰──── + help: Wrap this declaration in a block statement + + × 'with' statements are not allowed + ╭─[typescript/tests/cases/compiler/constDeclarations-scopes.ts:27:1] + 26 │ var obj; + 27 │ with (obj) { + · ──── + 28 │ const c = 0; + ╰──── + +Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/constDeclarations-validContexts.ts + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-validContexts.ts:31:12] + 30 │ if (true) { + 31 │ label: const c8 = 0; + · ───────────── + 32 │ } + ╰──── + help: Wrap this declaration in a block statement + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-validContexts.ts:35:29] + 34 │ while (false) { + 35 │ label2: label3: label4: const c9 = 0; + · ───────────── + 36 │ } + ╰──── + help: Wrap this declaration in a block statement + + × Lexical declaration cannot appear in a single-statement context + ╭─[typescript/tests/cases/compiler/constDeclarations-validContexts.ts:64:18] + 63 │ const c16 = 0 + 64 │ label17: const c17 = 0; + · ────────────── + 65 │ } + ╰──── + help: Wrap this declaration in a block statement + + × 'with' statements are not allowed + ╭─[typescript/tests/cases/compiler/constDeclarations-validContexts.ts:18:1] + 17 │ var obj; + 18 │ with (obj) { + · ──── + 19 │ const c5 = 0; + ╰──── + +Panicked: tasks/coverage/typescript/tests/cases/compiler/convertKeywordsYes.ts + + × Classes can't have a field named 'constructor' + ╭─[typescript/tests/cases/compiler/convertKeywordsYes.ts:175:12] + 174 │ class bigClass { + 175 │ public "constructor" = 0; + · ───────────── + 176 │ public any = 0; + ╰──── + + × Unexpected token + ╭─[typescript/tests/cases/compiler/convertKeywordsYes.ts:292:22] + 291 │ class constructor { } + 292 │ class implements { } + · ─ + 293 │ class interface { } + ╰──── + +Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/es5-asyncFunctionWithStatements.ts + + × 'with' statements are not allowed + ╭─[typescript/tests/cases/compiler/es5-asyncFunctionWithStatements.ts:4:5] + 3 │ async function withStatement0() { + 4 │ with (x) { + · ──── + 5 │ y; + ╰──── + + × 'with' statements are not allowed + ╭─[typescript/tests/cases/compiler/es5-asyncFunctionWithStatements.ts:10:5] + 9 │ async function withStatement1() { + 10 │ with (await x) { + · ──── + 11 │ y; + ╰──── + + × 'with' statements are not allowed + ╭─[typescript/tests/cases/compiler/es5-asyncFunctionWithStatements.ts:16:5] + 15 │ async function withStatement2() { + 16 │ with (x) { + · ──── + 17 │ a; + ╰──── + + × 'with' statements are not allowed + ╭─[typescript/tests/cases/compiler/es5-asyncFunctionWithStatements.ts:25:9] + 24 │ with (x) { + 25 │ with (z) { + · ──── + 26 │ a; + ╰──── + + × 'with' statements are not allowed + ╭─[typescript/tests/cases/compiler/es5-asyncFunctionWithStatements.ts:24:5] + 23 │ async function withStatement3() { + 24 │ with (x) { + · ──── + 25 │ with (z) { + ╰──── + +Panicked: tasks/coverage/typescript/tests/cases/compiler/missingCloseParenStatements.ts + + × Expected `)` but found `{` + ╭─[typescript/tests/cases/compiler/missingCloseParenStatements.ts:2:26] + 1 │ var a1, a2, a3 = 0; + 2 │ if ( a1 && (a2 + a3 > 0) { + · ┬ ┬ + · │ ╰── `)` expected + · ╰── Opened here + 3 │ while( (a2 > 0) && a1 + ╰──── + +Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts + + × 'with' statements are not allowed + ╭─[typescript/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts:2:1] + 1 │ // Arrow function used in with statement + 2 │ with (window) { + · ──── + 3 │ var p = () => this; + ╰──── + + × 'with' statements are not allowed + ╭─[typescript/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts:43:5] + 42 │ // Arrow function used in with statement + 43 │ with (window) { + · ──── + 44 │ var p = () => this; + ╰──── + +Panicked: tasks/coverage/typescript/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/nullAssignedToUndefined.ts + × Unexpected token + ╭─[typescript/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts:2:8] + 1 │ namespace Inner { + 2 │ var; + · ─ + 3 │ let; + ╰──── -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeRelationships/comparable/equalityStrictNulls.ts +Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.classMethods.es2018.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/typeRelationships/typeInference/intraExpressionInferences.ts + × Cannot use `await` as an identifier in an async context + ╭─[typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.classMethods.es2018.ts:2:15] + 1 │ class C4 { + 2 │ async * f(await) { + · ───── + 3 │ } + ╰──── -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/union/discriminatedUnionTypes2.ts +Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionDeclarations.es2018.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/union/unionTypeMembers.ts + × Cannot use `await` as an identifier in an async context + ╭─[typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionDeclarations.es2018.ts:1:21] + 1 │ async function * f4(await) { + · ───── + 2 │ } + ╰──── -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/union/unionTypePropertyAccessibility.ts +Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionExpressions.es2018.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/union/unionTypeReadonly.ts + × Cannot use `await` as an identifier in an async context + ╭─[typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionExpressions.es2018.ts:1:29] + 1 │ const f2 = async function * await() { + · ───── + 2 │ }; + ╰──── -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/union/unionTypeWithIndexSignature.ts +Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.objectLiteralMethods.es2018.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsErrors.ts + × Cannot use `await` as an identifier in an async context + ╭─[typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.objectLiteralMethods.es2018.ts:2:15] + 1 │ const o4 = { + 2 │ async * f(await) { + · ───── + 3 │ } + ╰──── -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/uniqueSymbol/uniqueSymbolsPropertyNames.ts +Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts -Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/witness/witness.ts + × TS(1108): A 'return' statement can only be used within a function body. + ╭─[typescript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts:1:1] + 1 │ return { + · ────── + 2 │ + ╰──── × TS(1090): 'public' modifier cannot appear on a parameter. @@ -2544,40 +2947,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit 7 │ ╰──── - × TS(1108): A 'return' statement can only be used within a function body. - ╭─[typescript/tests/cases/compiler/ambientWithStatements.ts:11:5] - 10 │ L: var y; - 11 │ return; - · ────── - 12 │ switch (x) { - ╰──── - - × Illegal break statement - ╭─[typescript/tests/cases/compiler/ambientWithStatements.ts:2:5] - 1 │ declare namespace M { - 2 │ break; - · ────── - 3 │ continue; - ╰──── - help: A `break` statement can only be used within an enclosing iteration or switch statement. - - × Illegal continue statement: no surrounding iteration statement - ╭─[typescript/tests/cases/compiler/ambientWithStatements.ts:3:5] - 2 │ break; - 3 │ continue; - · ───────── - 4 │ debugger; - ╰──── - help: A `continue` statement can only be used within an enclosing `for`, `while` or `do while` - - × 'with' statements are not allowed - ╭─[typescript/tests/cases/compiler/ambientWithStatements.ts:25:5] - 24 │ } - 25 │ with (x) { - · ──── - 26 │ } - ╰──── - × Unexpected token ╭─[typescript/tests/cases/compiler/ambiguousGenericAssertion1.ts:4:10] 3 │ var r2 = < (x: T) => T>f; // valid @@ -4190,213 +4559,63 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:3:7] 2 │ const c1; 3 │ const c2: number; - · ── - 4 │ const c3, c4, c5 :string, c6; // error, missing initialicer - ╰──── - help: Add an initializer (e.g. ` = undefined`) here - - × Missing initializer in const declaration - ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:4:7] - 3 │ const c2: number; - 4 │ const c3, c4, c5 :string, c6; // error, missing initialicer - · ── - 5 │ - ╰──── - help: Add an initializer (e.g. ` = undefined`) here - - × Missing initializer in const declaration - ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:4:11] - 3 │ const c2: number; - 4 │ const c3, c4, c5 :string, c6; // error, missing initialicer - · ── - 5 │ - ╰──── - help: Add an initializer (e.g. ` = undefined`) here - - × Missing initializer in const declaration - ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:4:15] - 3 │ const c2: number; - 4 │ const c3, c4, c5 :string, c6; // error, missing initialicer - · ── - 5 │ - ╰──── - help: Add an initializer (e.g. ` = undefined`) here - - × Missing initializer in const declaration - ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:4:27] - 3 │ const c2: number; - 4 │ const c3, c4, c5 :string, c6; // error, missing initialicer - · ── - 5 │ - ╰──── - help: Add an initializer (e.g. ` = undefined`) here - - × Missing initializer in const declaration - ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:12:11] - 11 │ // error, can not be unintalized - 12 │ for(const c9; c9 < 1;) { } - · ── - 13 │ - ╰──── - help: Add an initializer (e.g. ` = undefined`) here - - × Missing initializer in const declaration - ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:15:20] - 14 │ // error, can not be unintalized - 15 │ for(const c10 = 0, c11; c10 < 1;) { } - · ─── - ╰──── - help: Add an initializer (e.g. ` = undefined`) here - - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:3:5] - 2 │ if (true) - 3 │ const c1 = 0; - · ───────────── - 4 │ else - ╰──── - help: Wrap this declaration in a block statement - - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:5:5] - 4 │ else - 5 │ const c2 = 0; - · ───────────── - 6 │ - ╰──── - help: Wrap this declaration in a block statement - - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:8:5] - 7 │ while (true) - 8 │ const c3 = 0; - · ───────────── - 9 │ - ╰──── - help: Wrap this declaration in a block statement - - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:11:5] - 10 │ do - 11 │ const c4 = 0; - · ───────────── - 12 │ while (true); - ╰──── - help: Wrap this declaration in a block statement - - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:16:5] - 15 │ with (obj) - 16 │ const c5 = 0; // No Error will be reported here since we turn off all type checking - · ───────────── - 17 │ - ╰──── - help: Wrap this declaration in a block statement - - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:19:5] - 18 │ for (var i = 0; i < 10; i++) - 19 │ const c6 = 0; - · ───────────── - 20 │ - ╰──── - help: Wrap this declaration in a block statement - - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:22:5] - 21 │ for (var i2 in {}) - 22 │ const c7 = 0; - · ───────────── - 23 │ - ╰──── - help: Wrap this declaration in a block statement - - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:25:12] - 24 │ if (true) - 25 │ label: const c8 = 0; - · ───────────── - 26 │ - ╰──── - help: Wrap this declaration in a block statement - - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:28:29] - 27 │ while (false) - 28 │ label2: label3: label4: const c9 = 0; - · ───────────── - 29 │ - ╰──── - help: Wrap this declaration in a block statement - - × 'with' statements are not allowed - ╭─[typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts:15:1] - 14 │ var obj; - 15 │ with (obj) - · ──── - 16 │ const c5 = 0; // No Error will be reported here since we turn off all type checking - ╰──── - - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-scopes.ts:43:12] - 42 │ if (true) { - 43 │ label: const c = 0; - · ──────────── - 44 │ n = c; - ╰──── - help: Wrap this declaration in a block statement - - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-scopes.ts:48:29] - 47 │ while (false) { - 48 │ label2: label3: label4: const c = 0; - · ──────────── - 49 │ n = c; - ╰──── - help: Wrap this declaration in a block statement + · ── + 4 │ const c3, c4, c5 :string, c6; // error, missing initialicer + ╰──── + help: Add an initializer (e.g. ` = undefined`) here - × 'with' statements are not allowed - ╭─[typescript/tests/cases/compiler/constDeclarations-scopes.ts:27:1] - 26 │ var obj; - 27 │ with (obj) { - · ──── - 28 │ const c = 0; - ╰──── + × Missing initializer in const declaration + ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:4:7] + 3 │ const c2: number; + 4 │ const c3, c4, c5 :string, c6; // error, missing initialicer + · ── + 5 │ + ╰──── + help: Add an initializer (e.g. ` = undefined`) here - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-validContexts.ts:31:12] - 30 │ if (true) { - 31 │ label: const c8 = 0; - · ───────────── - 32 │ } - ╰──── - help: Wrap this declaration in a block statement + × Missing initializer in const declaration + ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:4:11] + 3 │ const c2: number; + 4 │ const c3, c4, c5 :string, c6; // error, missing initialicer + · ── + 5 │ + ╰──── + help: Add an initializer (e.g. ` = undefined`) here - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-validContexts.ts:35:29] - 34 │ while (false) { - 35 │ label2: label3: label4: const c9 = 0; - · ───────────── - 36 │ } - ╰──── - help: Wrap this declaration in a block statement + × Missing initializer in const declaration + ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:4:15] + 3 │ const c2: number; + 4 │ const c3, c4, c5 :string, c6; // error, missing initialicer + · ── + 5 │ + ╰──── + help: Add an initializer (e.g. ` = undefined`) here - × Lexical declaration cannot appear in a single-statement context - ╭─[typescript/tests/cases/compiler/constDeclarations-validContexts.ts:64:18] - 63 │ const c16 = 0 - 64 │ label17: const c17 = 0; - · ────────────── - 65 │ } + × Missing initializer in const declaration + ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:4:27] + 3 │ const c2: number; + 4 │ const c3, c4, c5 :string, c6; // error, missing initialicer + · ── + 5 │ + ╰──── + help: Add an initializer (e.g. ` = undefined`) here + + × Missing initializer in const declaration + ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:12:11] + 11 │ // error, can not be unintalized + 12 │ for(const c9; c9 < 1;) { } + · ── + 13 │ ╰──── - help: Wrap this declaration in a block statement + help: Add an initializer (e.g. ` = undefined`) here - × 'with' statements are not allowed - ╭─[typescript/tests/cases/compiler/constDeclarations-validContexts.ts:18:1] - 17 │ var obj; - 18 │ with (obj) { - · ──── - 19 │ const c5 = 0; + × Missing initializer in const declaration + ╭─[typescript/tests/cases/compiler/constDeclarations-errors.ts:15:20] + 14 │ // error, can not be unintalized + 15 │ for(const c10 = 0, c11; c10 < 1;) { } + · ─── ╰──── + help: Add an initializer (e.g. ` = undefined`) here × Identifier `E` has already been declared ╭─[typescript/tests/cases/compiler/constEnumErrors.ts:1:12] @@ -4577,21 +4796,13 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit 3 │ } ╰──── - × Classes can't have a field named 'constructor' - ╭─[typescript/tests/cases/compiler/convertKeywordsYes.ts:175:12] - 174 │ class bigClass { - 175 │ public "constructor" = 0; - · ───────────── - 176 │ public any = 0; - ╰──── - - × Unexpected token - ╭─[typescript/tests/cases/compiler/convertKeywordsYes.ts:292:22] - 291 │ class constructor { } - 292 │ class implements { } - · ─ - 293 │ class interface { } - ╰──── + × Missing initializer in const declaration + ╭─[typescript/tests/cases/compiler/controlFlowFunctionLikeCircular1.ts:2:7] + 1 │ unionOfDifferentReturnType1(true); + 2 │ const unionOfDifferentReturnType1: { (a: any): number; } | { (a: number): typeof Date; }; + · ─────────────────────────── + ╰──── + help: Add an initializer (e.g. ` = undefined`) here × TS(1490): File appears to be binary. @@ -4702,6 +4913,86 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit · ─ ╰──── + × TS(1187): A parameter property may not be declared using a binding pattern. + ╭─[typescript/tests/cases/compiler/declarationEmitNestedBindingPattern.ts:3:17] + 2 │ export class C1 { + 3 │ constructor(public [[x]]: any[]) {} + · ─────────────────── + 4 │ } + ╰──── + + × TS(1187): A parameter property may not be declared using a binding pattern. + ╭─[typescript/tests/cases/compiler/declarationEmitNestedBindingPattern.ts:8:17] + 7 │ export class C2 { + 8 │ constructor(public [{y}]: any[]) {} + · ─────────────────── + 9 │ } + ╰──── + + × TS(1187): A parameter property may not be declared using a binding pattern. + ╭─[typescript/tests/cases/compiler/declarationEmitNestedBindingPattern.ts:13:17] + 12 │ export class C3 { + 13 │ constructor(public [[[z]]]: any[]) {} + · ───────────────────── + 14 │ } + ╰──── + + × TS(1187): A parameter property may not be declared using a binding pattern. + ╭─[typescript/tests/cases/compiler/declarationEmitNestedBindingPattern.ts:18:17] + 17 │ export class C4 { + 18 │ constructor(public [{a: [b]}]: any[]) {} + · ──────────────────────── + 19 │ } + ╰──── + + × TS(1187): A parameter property may not be declared using a binding pattern. + ╭─[typescript/tests/cases/compiler/declarationEmitNestedBindingPattern.ts:23:17] + 22 │ export class C5 { + 23 │ constructor(public {prop: [c]}: any) {} + · ─────────────────────── + 24 │ } + ╰──── + + × TS(1187): A parameter property may not be declared using a binding pattern. + ╭─[typescript/tests/cases/compiler/declarationEmitNestedBindingPattern.ts:28:17] + 27 │ export class C6 { + 28 │ constructor(public {prop: {nested: [d]}}: any) {} + · ───────────────────────────────── + 29 │ } + ╰──── + + × TS(1187): A parameter property may not be declared using a binding pattern. + ╭─[typescript/tests/cases/compiler/declarationEmitNestedBindingPattern.ts:34:9] + 33 │ constructor( + 34 │ public [[e]]: any[], + · ─────────────────── + 35 │ public [{f}]: any[] + ╰──── + + × TS(1187): A parameter property may not be declared using a binding pattern. + ╭─[typescript/tests/cases/compiler/declarationEmitNestedBindingPattern.ts:35:9] + 34 │ public [[e]]: any[], + 35 │ public [{f}]: any[] + · ─────────────────── + 36 │ ) {} + ╰──── + + × TS(1187): A parameter property may not be declared using a binding pattern. + ╭─[typescript/tests/cases/compiler/declarationEmitNestedBindingPattern.ts:41:17] + 40 │ export class C8 { + 41 │ constructor(public [[g, ...rest]]: any[]) {} + · ──────────────────────────── + 42 │ } + ╰──── + + × TS(1187): A parameter property may not be declared using a binding pattern. + ╭─[typescript/tests/cases/compiler/declarationEmitNestedBindingPattern.ts:46:17] + 45 │ export class C9 { + 46 │ constructor(public [[h, i], {j, k: [l]}]: any) {} + · ───────────────────────────────── + 47 │ } + ╰──── + × Expected `from` but found `Identifier` ╭─[typescript/tests/cases/compiler/declarationEmitUnknownImport2.ts:1:12] 1 │ import Foo From './Foo'; // Syntax error @@ -5581,46 +5872,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit · ───── ╰──── - × 'with' statements are not allowed - ╭─[typescript/tests/cases/compiler/es5-asyncFunctionWithStatements.ts:4:5] - 3 │ async function withStatement0() { - 4 │ with (x) { - · ──── - 5 │ y; - ╰──── - - × 'with' statements are not allowed - ╭─[typescript/tests/cases/compiler/es5-asyncFunctionWithStatements.ts:10:5] - 9 │ async function withStatement1() { - 10 │ with (await x) { - · ──── - 11 │ y; - ╰──── - - × 'with' statements are not allowed - ╭─[typescript/tests/cases/compiler/es5-asyncFunctionWithStatements.ts:16:5] - 15 │ async function withStatement2() { - 16 │ with (x) { - · ──── - 17 │ a; - ╰──── - - × 'with' statements are not allowed - ╭─[typescript/tests/cases/compiler/es5-asyncFunctionWithStatements.ts:25:9] - 24 │ with (x) { - 25 │ with (z) { - · ──── - 26 │ a; - ╰──── - - × 'with' statements are not allowed - ╭─[typescript/tests/cases/compiler/es5-asyncFunctionWithStatements.ts:24:5] - 23 │ async function withStatement3() { - 24 │ with (x) { - · ──── - 25 │ with (z) { - ╰──── - × TS(2309): An export assignment cannot be used in a module with other exported elements ╭─[typescript/tests/cases/compiler/es5ExportEquals.ts:3:1] 2 │ @@ -6553,9 +6804,9 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit ╰──── × Only string literals are allowed as module attribute values. - ╭─[typescript/tests/cases/compiler/importAssertionNonstring.ts:1:52] - 1 │ import * as thing1 from "./mod.mjs" assert {field: 0}; - · ─ + ╭─[typescript/tests/cases/compiler/importAssertionNonstring.ts:1:50] + 1 │ import * as thing1 from "./mod.mjs" with {field: 0}; + · ─ 2 │ ╰──── help: Wrap this with quotes @@ -7864,16 +8115,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit 1 │ var alphas:string[] = alphas = ["1","2","3","4" ╰──── - × Expected `)` but found `{` - ╭─[typescript/tests/cases/compiler/missingCloseParenStatements.ts:2:26] - 1 │ var a1, a2, a3 = 0; - 2 │ if ( a1 && (a2 + a3 > 0) { - · ┬ ┬ - · │ ╰── `)` expected - · ╰── Opened here - 3 │ while( (a2 > 0) && a1 - ╰──── - × TS(2391): Function implementation is missing or not immediately following the declaration. ╭─[typescript/tests/cases/compiler/missingFunctionImplementation.ts:2:3] 1 │ export class C1 { @@ -19404,22 +19645,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit ╰──── help: Remove the trailing comma here - × 'with' statements are not allowed - ╭─[typescript/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts:2:1] - 1 │ // Arrow function used in with statement - 2 │ with (window) { - · ──── - 3 │ var p = () => this; - ╰──── - - × 'with' statements are not allowed - ╭─[typescript/tests/cases/conformance/expressions/functions/arrowFunctionContexts.ts:43:5] - 42 │ // Arrow function used in with statement - 43 │ with (window) { - · ──── - 44 │ var p = () => this; - ╰──── - × '0'-prefixed octal literals and octal escape sequences are deprecated ╭─[typescript/tests/cases/conformance/expressions/literals/strictModeOctalLiterals.ts:2:14] 1 │ export enum E { @@ -20316,13 +20541,13 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit ╰──── × Expected `{` but found `EOF` - ╭─[typescript/tests/cases/conformance/importAssertion/importAssertion4.ts:1:36] - 1 │ import * as f from "./first" assert + ╭─[typescript/tests/cases/conformance/importAssertion/importAssertion4.ts:1:34] + 1 │ import * as f from "./first" with ╰──── × Expected `}` but found `EOF` - ╭─[typescript/tests/cases/conformance/importAssertion/importAssertion5.ts:1:38] - 1 │ import * as f from "./first" assert { + ╭─[typescript/tests/cases/conformance/importAssertion/importAssertion5.ts:1:36] + 1 │ import * as f from "./first" with { ╰──── × import() requires a specifier. @@ -20507,14 +20732,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit 15 │ } ╰──── - × Unexpected token - ╭─[typescript/tests/cases/conformance/internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts:2:8] - 1 │ namespace Inner { - 2 │ var; - · ─ - 3 │ let; - ╰──── - × 'public' modifier cannot be used here. ╭─[typescript/tests/cases/conformance/internalModules/moduleBody/invalidModuleWithStatementsOfEveryKind.ts:4:5] 3 │ namespace Y { @@ -21510,36 +21727,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit ╰──── help: No modifiers are allowed here. - × Cannot use `await` as an identifier in an async context - ╭─[typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.classMethods.es2018.ts:2:15] - 1 │ class C4 { - 2 │ async * f(await) { - · ───── - 3 │ } - ╰──── - - × Cannot use `await` as an identifier in an async context - ╭─[typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionDeclarations.es2018.ts:1:21] - 1 │ async function * f4(await) { - · ───── - 2 │ } - ╰──── - - × Cannot use `await` as an identifier in an async context - ╭─[typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.functionExpressions.es2018.ts:1:29] - 1 │ const f2 = async function * await() { - · ───── - 2 │ }; - ╰──── - - × Cannot use `await` as an identifier in an async context - ╭─[typescript/tests/cases/conformance/parser/ecmascript2018/asyncGenerators/parser.asyncGenerators.objectLiteralMethods.es2018.ts:2:15] - 1 │ const o4 = { - 2 │ async * f(await) { - · ───── - 3 │ } - ╰──── - × `await` is only allowed within async functions and at the top levels of modules ╭─[typescript/tests/cases/conformance/parser/ecmascript2018/forAwait/parser.forAwait.es2018.ts:1:5] 1 │ for await (const x of y) { @@ -22544,13 +22731,6 @@ Expect Syntax Error: tasks/coverage/typescript/tests/cases/conformance/types/wit ╰──── help: Try inserting a semicolon here - × TS(1108): A 'return' statement can only be used within a function body. - ╭─[typescript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserStatementIsNotAMemberVariableDeclaration1.ts:1:1] - 1 │ return { - · ────── - 2 │ - ╰──── - × Expected a semicolon or an implicit semicolon after a statement, but found none ╭─[typescript/tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserUnfinishedTypeNameBeforeKeyword1.ts:2:10] 1 │ var x: TypeModule1. diff --git a/tasks/coverage/snapshots/semantic_babel.snap b/tasks/coverage/snapshots/semantic_babel.snap index e5a7efa103e0c..3f586a92c46a4 100644 --- a/tasks/coverage/snapshots/semantic_babel.snap +++ b/tasks/coverage/snapshots/semantic_babel.snap @@ -1,4 +1,4 @@ -commit: 92c052dc +commit: ad32683b semantic_babel Summary: AST Parsed : 2224/2224 (100.00%) diff --git a/tasks/coverage/snapshots/semantic_test262.snap b/tasks/coverage/snapshots/semantic_test262.snap index 58bd351df082f..491f6b511041b 100644 --- a/tasks/coverage/snapshots/semantic_test262.snap +++ b/tasks/coverage/snapshots/semantic_test262.snap @@ -1,8 +1,8 @@ -commit: dd6138f9 +commit: 3180f5a9 semantic_test262 Summary: -AST Parsed : 46746/46746 (100.00%) -Positive Passed: 45066/46746 (96.41%) +AST Parsed : 46777/46777 (100.00%) +Positive Passed: 45097/46777 (96.41%) semantic Error: tasks/coverage/test262/test/built-ins/AsyncFromSyncIteratorPrototype/next/for-await-iterator-next-rejected-promise-close.js Bindings mismatch: after transform: ScopeId(4): [] diff --git a/tasks/coverage/snapshots/semantic_typescript.snap b/tasks/coverage/snapshots/semantic_typescript.snap index d061bc2f04e09..76e6d0ee12a3a 100644 --- a/tasks/coverage/snapshots/semantic_typescript.snap +++ b/tasks/coverage/snapshots/semantic_typescript.snap @@ -1,8 +1,8 @@ -commit: 95e3aaa9 +commit: ad04bf74 semantic_typescript Summary: -AST Parsed : 5482/5482 (100.00%) -Positive Passed: 2951/5482 (53.83%) +AST Parsed : 4769/4769 (100.00%) +Positive Passed: 2666/4769 (55.90%) semantic Error: tasks/coverage/typescript/tests/cases/compiler/2dArrays.ts Symbol reference IDs mismatch for "Cell": after transform: SymbolId(0): [ReferenceId(1)] @@ -258,21 +258,6 @@ Symbol span mismatch for "N": after transform: SymbolId(1): Span { start: 28, end: 29 } rebuilt : SymbolId(2): Span { start: 0, end: 0 } -semantic Error: tasks/coverage/typescript/tests/cases/compiler/aliasUsageInArray.ts -Symbol reference IDs mismatch for "moduleA": -after transform: SymbolId(1): [ReferenceId(2), ReferenceId(3), ReferenceId(4)] -rebuilt : SymbolId(0): [ReferenceId(1), ReferenceId(2)] - -semantic Error: tasks/coverage/typescript/tests/cases/compiler/aliasUsageInIndexerOfClass.ts -Symbol reference IDs mismatch for "moduleA": -after transform: SymbolId(1): [ReferenceId(2), ReferenceId(3)] -rebuilt : SymbolId(1): [ReferenceId(3)] - -semantic Error: tasks/coverage/typescript/tests/cases/compiler/aliasUsageInObjectLiteral.ts -Symbol reference IDs mismatch for "moduleA": -after transform: SymbolId(1): [ReferenceId(1), ReferenceId(2), ReferenceId(4), ReferenceId(6)] -rebuilt : SymbolId(0): [ReferenceId(1), ReferenceId(2), ReferenceId(3)] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/allowJsCrossMonorepoPackage.ts Bindings mismatch: after transform: ScopeId(0): ["x"] @@ -427,6 +412,12 @@ Bindings mismatch: after transform: ScopeId(0): ["Foo"] rebuilt : ScopeId(0): [] +semantic Error: tasks/coverage/typescript/tests/cases/compiler/ambientWithStatements.ts +A 'return' statement can only be used within a function body. +Illegal break statement +Illegal continue statement: no surrounding iteration statement +'with' statements are not allowed + semantic Error: tasks/coverage/typescript/tests/cases/compiler/ambiguousOverloadResolution.ts Bindings mismatch: after transform: ScopeId(0): ["A", "B", "_defineProperty", "f", "t", "x"] @@ -489,48 +480,6 @@ Unresolved references mismatch: after transform: ["Array"] rebuilt : ["use"] -semantic Error: tasks/coverage/typescript/tests/cases/compiler/arrayAssignmentTest6.ts -Scope flags mismatch: -after transform: ScopeId(1): ScopeFlags(StrictMode | Function) -rebuilt : ScopeId(1): ScopeFlags(Function) -Symbol flags mismatch for "Test": -after transform: SymbolId(0): SymbolFlags(ValueModule) -rebuilt : SymbolId(0): SymbolFlags(BlockScopedVariable) -Symbol span mismatch for "Test": -after transform: SymbolId(0): Span { start: 10, end: 14 } -rebuilt : SymbolId(0): Span { start: 0, end: 0 } - -semantic Error: tasks/coverage/typescript/tests/cases/compiler/arrayBestCommonTypes.ts -Scope flags mismatch: -after transform: ScopeId(1): ScopeFlags(StrictMode | Function) -rebuilt : ScopeId(1): ScopeFlags(Function) -Scope flags mismatch: -after transform: ScopeId(12): ScopeFlags(StrictMode | Function) -rebuilt : ScopeId(8): ScopeFlags(Function) -Symbol flags mismatch for "EmptyTypes": -after transform: SymbolId(0): SymbolFlags(ValueModule) -rebuilt : SymbolId(1): SymbolFlags(BlockScopedVariable) -Symbol span mismatch for "EmptyTypes": -after transform: SymbolId(0): Span { start: 10, end: 20 } -rebuilt : SymbolId(1): Span { start: 0, end: 0 } -Symbol reference IDs mismatch for "base": -after transform: SymbolId(2): [ReferenceId(9), ReferenceId(11), ReferenceId(12), ReferenceId(14), ReferenceId(15), ReferenceId(17), ReferenceId(23), ReferenceId(2)] -rebuilt : SymbolId(3): [ReferenceId(9), ReferenceId(11), ReferenceId(13), ReferenceId(18), ReferenceId(1)] -Symbol flags mismatch for "NonEmptyTypes": -after transform: SymbolId(28): SymbolFlags(ValueModule) -rebuilt : SymbolId(23): SymbolFlags(BlockScopedVariable) -Symbol span mismatch for "NonEmptyTypes": -after transform: SymbolId(28): Span { start: 2231, end: 2244 } -rebuilt : SymbolId(23): Span { start: 0, end: 0 } -Symbol reference IDs mismatch for "base": -after transform: SymbolId(30): [ReferenceId(46), ReferenceId(48), ReferenceId(49), ReferenceId(51), ReferenceId(52), ReferenceId(54), ReferenceId(60), ReferenceId(39)] -rebuilt : SymbolId(25): [ReferenceId(48), ReferenceId(50), ReferenceId(52), ReferenceId(57), ReferenceId(38)] - -semantic Error: tasks/coverage/typescript/tests/cases/compiler/arrayBufferIsViewNarrowsType.ts -Unresolved references mismatch: -after transform: ["ArrayBuffer", "ArrayBufferView", "Object"] -rebuilt : ["ArrayBuffer"] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/arrayConcat3.ts Unresolved references mismatch: after transform: ["Array"] @@ -636,11 +585,6 @@ Unresolved references mismatch: after transform: ["Error"] rebuilt : [] -semantic Error: tasks/coverage/typescript/tests/cases/compiler/asiAmbientFunctionDeclaration.ts -Bindings mismatch: -after transform: ScopeId(0): ["foo"] -rebuilt : ScopeId(0): [] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/assertionFunctionWildcardImport1.ts Bindings mismatch: after transform: ScopeId(0): ["assert"] @@ -720,26 +664,11 @@ semantic Error: tasks/coverage/typescript/tests/cases/compiler/assignmentCompata Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support -semantic Error: tasks/coverage/typescript/tests/cases/compiler/assignmentCompatability2.ts -Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support -Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support -Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support - semantic Error: tasks/coverage/typescript/tests/cases/compiler/assignmentCompatability3.ts Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support -semantic Error: tasks/coverage/typescript/tests/cases/compiler/assignmentCompatability36.ts -Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support -Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support -Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support - -semantic Error: tasks/coverage/typescript/tests/cases/compiler/assignmentCompatability4.ts -Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support -Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support -Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support - semantic Error: tasks/coverage/typescript/tests/cases/compiler/assignmentCompatability5.ts Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support @@ -867,11 +796,6 @@ Namespaces exporting non-const are not supported by Oxc. Change to const or see: semantic Error: tasks/coverage/typescript/tests/cases/compiler/augmentExportEquals4.ts Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support -semantic Error: tasks/coverage/typescript/tests/cases/compiler/augmentExportEquals5.ts -Unresolved references mismatch: -after transform: ["Error", "Function", "RegExp"] -rebuilt : [] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/augmentExportEquals6.ts Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support @@ -921,14 +845,6 @@ Unresolved references mismatch: after transform: [] rebuilt : ["foo"] -semantic Error: tasks/coverage/typescript/tests/cases/compiler/awaitUnionPromise.ts -Symbol reference IDs mismatch for "AsyncEnumeratorDone": -after transform: SymbolId(0): [ReferenceId(2), ReferenceId(6)] -rebuilt : SymbolId(1): [] -Unresolved references mismatch: -after transform: ["Promise", "arguments", "require"] -rebuilt : ["arguments", "require"] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/awaitedTypeCrash.ts Unresolved references mismatch: after transform: ["AsyncGenerator", "Promise", "arguments", "require"] @@ -964,30 +880,6 @@ Unresolved references mismatch: after transform: [] rebuilt : ["bar", "foo"] -semantic Error: tasks/coverage/typescript/tests/cases/compiler/baseIndexSignatureResolution.ts -Symbol reference IDs mismatch for "Base": -after transform: SymbolId(0): [ReferenceId(0), ReferenceId(1), ReferenceId(2)] -rebuilt : SymbolId(1): [ReferenceId(2)] -Symbol reference IDs mismatch for "Derived": -after transform: SymbolId(1): [ReferenceId(6), ReferenceId(7)] -rebuilt : SymbolId(2): [] - -semantic Error: tasks/coverage/typescript/tests/cases/compiler/baseTypeOrderChecking.ts -Symbol reference IDs mismatch for "Class2": -after transform: SymbolId(2): [ReferenceId(1), ReferenceId(3)] -rebuilt : SymbolId(3): [] -Symbol reference IDs mismatch for "Class4": -after transform: SymbolId(5): [ReferenceId(0)] -rebuilt : SymbolId(5): [] - -semantic Error: tasks/coverage/typescript/tests/cases/compiler/baseTypeWrappingInstantiationChain.ts -Symbol reference IDs mismatch for "Parameter": -after transform: SymbolId(5): [ReferenceId(0)] -rebuilt : SymbolId(4): [] -Symbol reference IDs mismatch for "Wrapper": -after transform: SymbolId(8): [ReferenceId(3), ReferenceId(10), ReferenceId(14)] -rebuilt : SymbolId(6): [] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/bindingPatternContextualTypeDoesNotCauseWidening.ts Bindings mismatch: after transform: ScopeId(0): ["_", "pick"] @@ -1352,22 +1244,6 @@ Unresolved references mismatch: after transform: [] rebuilt : ["A", "a"] -semantic Error: tasks/coverage/typescript/tests/cases/compiler/castTest.ts -Bindings mismatch: -after transform: ScopeId(0): ["Point", "a", "ar", "b", "f", "p_cast", "s", "x", "y", "z"] -rebuilt : ScopeId(0): ["a", "ar", "b", "f", "p_cast", "s", "x", "y", "z"] -Reference symbol mismatch for "Point": -after transform: SymbolId(9) "Point" -rebuilt : -Unresolved references mismatch: -after transform: [] -rebuilt : ["Point"] - -semantic Error: tasks/coverage/typescript/tests/cases/compiler/chainedAssignment2.ts -Unresolved references mismatch: -after transform: ["Date", "RegExp"] -rebuilt : [] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/chainedImportAlias.ts Symbol flags mismatch for "m": after transform: SymbolId(0): SymbolFlags(ValueModule) @@ -1493,11 +1369,6 @@ rebuilt : ["connect"] semantic Error: tasks/coverage/typescript/tests/cases/compiler/classDeclarationMergedInModuleWithContinuation.ts Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support -semantic Error: tasks/coverage/typescript/tests/cases/compiler/classExpressionWithResolutionOfNamespaceOfSameName01.ts -Bindings mismatch: -after transform: ScopeId(0): ["C", "_defineProperty", "x"] -rebuilt : ScopeId(0): ["_defineProperty", "x"] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/classExpressionWithStaticPropertiesES63.ts Bindings mismatch: after transform: ScopeId(0): ["_C", "_defineProperty", "arr", "console"] @@ -1509,17 +1380,6 @@ Unresolved references mismatch: after transform: ["require"] rebuilt : ["console", "require"] -semantic Error: tasks/coverage/typescript/tests/cases/compiler/classExtendingAny.ts -Bindings mismatch: -after transform: ScopeId(0): ["A", "Err", "_defineProperty", "o"] -rebuilt : ScopeId(0): ["A", "_defineProperty", "o"] -Reference symbol mismatch for "Err": -after transform: SymbolId(0) "Err" -rebuilt : -Unresolved references mismatch: -after transform: ["require"] -rebuilt : ["Err", "require"] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/classExtendingQualifiedName2.ts Scope flags mismatch: after transform: ScopeId(1): ScopeFlags(StrictMode | Function) @@ -1561,17 +1421,6 @@ Symbol reference IDs mismatch for "A": after transform: SymbolId(0): [ReferenceId(0)] rebuilt : SymbolId(0): [] -semantic Error: tasks/coverage/typescript/tests/cases/compiler/classImplementsClass3.ts -Symbol reference IDs mismatch for "A": -after transform: SymbolId(0): [ReferenceId(0), ReferenceId(1)] -rebuilt : SymbolId(0): [ReferenceId(0)] -Symbol reference IDs mismatch for "C": -after transform: SymbolId(1): [ReferenceId(2)] -rebuilt : SymbolId(1): [] -Symbol reference IDs mismatch for "C2": -after transform: SymbolId(2): [ReferenceId(3)] -rebuilt : SymbolId(2): [] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/classImplementsImportedInterface.ts Bindings mismatch: after transform: ScopeId(0): ["M1", "M2"] @@ -1692,50 +1541,6 @@ Unresolved references mismatch: after transform: [] rebuilt : ["callme"] -semantic Error: tasks/coverage/typescript/tests/cases/compiler/clinterfaces.ts -Bindings mismatch: -after transform: ScopeId(0): ["M", "_defineProperty"] -rebuilt : ScopeId(0): ["Bar", "Foo", "M", "_defineProperty"] -Bindings mismatch: -after transform: ScopeId(1): ["_M"] -rebuilt : ScopeId(1): ["C", "D", "_M"] -Symbol flags mismatch for "M": -after transform: SymbolId(0): SymbolFlags(ValueModule) -rebuilt : SymbolId(1): SymbolFlags(BlockScopedVariable) -Symbol span mismatch for "M": -after transform: SymbolId(0): Span { start: 10, end: 11 } -rebuilt : SymbolId(1): Span { start: 0, end: 0 } -Symbol flags mismatch for "C": -after transform: SymbolId(1): SymbolFlags(Class | Interface) -rebuilt : SymbolId(3): SymbolFlags(Class) -Symbol redeclarations mismatch for "C": -after transform: SymbolId(1): [Span { start: 24, end: 25 }, Span { start: 44, end: 45 }] -rebuilt : SymbolId(3): [] -Symbol flags mismatch for "D": -after transform: SymbolId(2): SymbolFlags(Class | Interface) -rebuilt : SymbolId(4): SymbolFlags(Class) -Symbol span mismatch for "D": -after transform: SymbolId(2): Span { start: 64, end: 65 } -rebuilt : SymbolId(4): Span { start: 80, end: 81 } -Symbol redeclarations mismatch for "D": -after transform: SymbolId(2): [Span { start: 64, end: 65 }, Span { start: 80, end: 81 }] -rebuilt : SymbolId(4): [] -Symbol flags mismatch for "Foo": -after transform: SymbolId(3): SymbolFlags(Class | Interface) -rebuilt : SymbolId(5): SymbolFlags(Class) -Symbol span mismatch for "Foo": -after transform: SymbolId(3): Span { start: 99, end: 102 } -rebuilt : SymbolId(5): Span { start: 132, end: 135 } -Symbol redeclarations mismatch for "Foo": -after transform: SymbolId(3): [Span { start: 99, end: 102 }, Span { start: 132, end: 135 }] -rebuilt : SymbolId(5): [] -Symbol flags mismatch for "Bar": -after transform: SymbolId(6): SymbolFlags(Class | Interface) -rebuilt : SymbolId(6): SymbolFlags(Class) -Symbol redeclarations mismatch for "Bar": -after transform: SymbolId(6): [Span { start: 164, end: 167 }, Span { start: 200, end: 203 }] -rebuilt : SymbolId(6): [] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/cloduleAcrossModuleDefinitions.ts Namespaces exporting non-const are not supported by Oxc. Change to const or see: https://oxc.rs/docs/guide/usage/transformer/typescript.html#partial-namespace-support @@ -1753,20 +1558,6 @@ Symbol redeclarations mismatch for "Foo": after transform: SymbolId(0): [Span { start: 6, end: 9 }, Span { start: 66, end: 69 }] rebuilt : SymbolId(0): [] -semantic Error: tasks/coverage/typescript/tests/cases/compiler/cloduleGenericOnSelfMember.ts -Scope flags mismatch: -after transform: ScopeId(3): ScopeFlags(StrictMode | Function) -rebuilt : ScopeId(4): ScopeFlags(Function) -Symbol flags mismatch for "Service": -after transform: SymbolId(2): SymbolFlags(Class | ValueModule) -rebuilt : SymbolId(2): SymbolFlags(Class) -Symbol reference IDs mismatch for "Service": -after transform: SymbolId(2): [ReferenceId(2), ReferenceId(4), ReferenceId(5)] -rebuilt : SymbolId(2): [ReferenceId(4), ReferenceId(5)] -Symbol redeclarations mismatch for "Service": -after transform: SymbolId(2): [Span { start: 45, end: 52 }, Span { start: 108, end: 115 }] -rebuilt : SymbolId(2): [] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/cloduleTest1.ts Scope flags mismatch: after transform: ScopeId(4): ScopeFlags(StrictMode | Function) @@ -2108,6 +1899,49 @@ Unresolved references mismatch: after transform: ["Array"] rebuilt : [] +semantic Error: tasks/coverage/typescript/tests/cases/compiler/collisionArgumentsFunction.ts +Bindings mismatch: +after transform: ScopeId(0): ["f1", "f12", "f1NoError", "f2", "f21", "f2NoError", "f3", "f3NoError", "f4", "f42", "f4NoError", "f5", "f52", "f6"] +rebuilt : ScopeId(0): ["f1", "f12", "f1NoError", "f3", "f3NoError", "f4", "f42", "f4NoError"] +Symbol span mismatch for "f4": +after transform: SymbolId(21): Span { start: 666, end: 668 } +rebuilt : SymbolId(13): Span { start: 794, end: 796 } +Symbol redeclarations mismatch for "f4": +after transform: SymbolId(21): [Span { start: 666, end: 668 }, Span { start: 730, end: 732 }, Span { start: 794, end: 796 }] +rebuilt : SymbolId(13): [] +Symbol span mismatch for "f42": +after transform: SymbolId(28): Span { start: 880, end: 883 } +rebuilt : SymbolId(16): Span { start: 1004, end: 1007 } +Symbol redeclarations mismatch for "f42": +after transform: SymbolId(28): [Span { start: 880, end: 883 }, Span { start: 942, end: 945 }, Span { start: 1004, end: 1007 }] +rebuilt : SymbolId(16): [] +Symbol span mismatch for "f4NoError": +after transform: SymbolId(35): Span { start: 1090, end: 1099 } +rebuilt : SymbolId(19): Span { start: 1192, end: 1201 } +Symbol redeclarations mismatch for "f4NoError": +after transform: SymbolId(35): [Span { start: 1090, end: 1099 }, Span { start: 1141, end: 1150 }, Span { start: 1192, end: 1201 }] +rebuilt : SymbolId(19): [] + +semantic Error: tasks/coverage/typescript/tests/cases/compiler/collisionArgumentsFunctionExpressions.ts +Symbol span mismatch for "f4": +after transform: SymbolId(14): Span { start: 526, end: 528 } +rebuilt : SymbolId(14): Span { start: 662, end: 664 } +Symbol redeclarations mismatch for "f4": +after transform: SymbolId(14): [Span { start: 526, end: 528 }, Span { start: 594, end: 596 }, Span { start: 662, end: 664 }] +rebuilt : SymbolId(14): [] +Symbol span mismatch for "f42": +after transform: SymbolId(21): Span { start: 760, end: 763 } +rebuilt : SymbolId(17): Span { start: 892, end: 895 } +Symbol redeclarations mismatch for "f42": +after transform: SymbolId(21): [Span { start: 760, end: 763 }, Span { start: 826, end: 829 }, Span { start: 892, end: 895 }] +rebuilt : SymbolId(17): [] +Symbol span mismatch for "f4NoError": +after transform: SymbolId(28): Span { start: 990, end: 999 } +rebuilt : SymbolId(20): Span { start: 1100, end: 1109 } +Symbol redeclarations mismatch for "f4NoError": +after transform: SymbolId(28): [Span { start: 990, end: 999 }, Span { start: 1045, end: 1054 }, Span { start: 1100, end: 1109 }] +rebuilt : SymbolId(20): [] + semantic Error: tasks/coverage/typescript/tests/cases/compiler/collisionCodeGenEnumWithEnumMemberConflict.ts Bindings mismatch: after transform: ScopeId(1): ["Color", "Thing"] @@ -2272,20 +2106,6 @@ Symbol span mismatch for "m4": after transform: SymbolId(5): Span { start: 175, end: 177 } rebuilt : SymbolId(0): Span { start: 0, end: 0 } -semantic Error: tasks/coverage/typescript/tests/cases/compiler/collisionExportsRequireAndAmbientModule.ts -Bindings mismatch: -after transform: ScopeId(0): ["exports", "foo", "foo2", "m1", "m2", "require"] -rebuilt : ScopeId(0): ["foo", "foo2", "m2"] -Bindings mismatch: -after transform: ScopeId(16): ["_m", "a", "exports", "require"] -rebuilt : ScopeId(3): ["_m", "a"] -Symbol flags mismatch for "m2": -after transform: SymbolId(15): SymbolFlags(ValueModule) -rebuilt : SymbolId(2): SymbolFlags(BlockScopedVariable) -Symbol span mismatch for "m2": -after transform: SymbolId(15): Span { start: 542, end: 544 } -rebuilt : SymbolId(2): Span { start: 0, end: 0 } - semantic Error: tasks/coverage/typescript/tests/cases/compiler/collisionExportsRequireAndAmbientVar.ts Bindings mismatch: after transform: ScopeId(0): ["exports", "m1", "m2", "require"] @@ -2784,17 +2604,6 @@ Unresolved references mismatch: after transform: ["const", "require"] rebuilt : ["E2", "MyDeclaredEnum", "computed", "require"] -semantic Error: tasks/coverage/typescript/tests/cases/compiler/computedPropertiesTransformedInOtherwiseNonTSClasses.ts -Scope flags mismatch: -after transform: ScopeId(1): ScopeFlags(StrictMode | Function) -rebuilt : ScopeId(1): ScopeFlags(Function) -Symbol flags mismatch for "NS": -after transform: SymbolId(0): SymbolFlags(ValueModule) -rebuilt : SymbolId(1): SymbolFlags(BlockScopedVariable) -Symbol span mismatch for "NS": -after transform: SymbolId(0): Span { start: 10, end: 12 } -rebuilt : SymbolId(1): Span { start: 0, end: 0 } - semantic Error: tasks/coverage/typescript/tests/cases/compiler/computedPropertiesWithSetterAssignment.ts Bindings mismatch: after transform: ScopeId(0): ["Props", "foo", "k"] @@ -2902,38 +2711,6 @@ Unresolved references mismatch: after transform: ["Exclude", "Extract", "Pick"] rebuilt : ["z"] -semantic Error: tasks/coverage/typescript/tests/cases/compiler/conditionallyDuplicateOverloadsCausedByOverloadResolution.ts -Bindings mismatch: -after transform: ScopeId(0): ["foo", "foo2", "out", "out2"] -rebuilt : ScopeId(0): ["out", "out2"] -Symbol reference IDs mismatch for "x": -after transform: SymbolId(8): [ReferenceId(1)] -rebuilt : SymbolId(1): [] -Symbol reference IDs mismatch for "y": -after transform: SymbolId(9): [ReferenceId(2)] -rebuilt : SymbolId(2): [] -Symbol span mismatch for "bar": -after transform: SymbolId(10): Span { start: 175, end: 178 } -rebuilt : SymbolId(3): Span { start: 249, end: 252 } -Symbol redeclarations mismatch for "bar": -after transform: SymbolId(10): [Span { start: 175, end: 178 }, Span { start: 212, end: 215 }, Span { start: 249, end: 252 }] -rebuilt : SymbolId(3): [] -Symbol reference IDs mismatch for "x": -after transform: SymbolId(21): [ReferenceId(5)] -rebuilt : SymbolId(5): [] -Symbol reference IDs mismatch for "y": -after transform: SymbolId(22): [ReferenceId(6)] -rebuilt : SymbolId(6): [] -Reference symbol mismatch for "foo": -after transform: SymbolId(0) "foo" -rebuilt : -Reference symbol mismatch for "foo2": -after transform: SymbolId(13) "foo2" -rebuilt : -Unresolved references mismatch: -after transform: [] -rebuilt : ["foo", "foo2"] - semantic Error: tasks/coverage/typescript/tests/cases/compiler/constDeclarationShadowedByVarDeclaration3.ts Unresolved reference IDs mismatch for "RegExp": after transform: [ReferenceId(0), ReferenceId(1)] @@ -2944,6 +2721,29 @@ Bindings mismatch: after transform: ScopeId(0): ["M", "c1", "c2", "c3", "c4", "c5"] rebuilt : ScopeId(0): [] +semantic Error: tasks/coverage/typescript/tests/cases/compiler/constDeclarations-invalidContexts.ts +Lexical declaration cannot appear in a single-statement context +Lexical declaration cannot appear in a single-statement context +Lexical declaration cannot appear in a single-statement context +Lexical declaration cannot appear in a single-statement context +Lexical declaration cannot appear in a single-statement context +Lexical declaration cannot appear in a single-statement context +Lexical declaration cannot appear in a single-statement context +Lexical declaration cannot appear in a single-statement context +Lexical declaration cannot appear in a single-statement context +'with' statements are not allowed + +semantic Error: tasks/coverage/typescript/tests/cases/compiler/constDeclarations-scopes.ts +Lexical declaration cannot appear in a single-statement context +Lexical declaration cannot appear in a single-statement context +'with' statements are not allowed + +semantic Error: tasks/coverage/typescript/tests/cases/compiler/constDeclarations-validContexts.ts +Lexical declaration cannot appear in a single-statement context +Lexical declaration cannot appear in a single-statement context +Lexical declaration cannot appear in a single-statement context +'with' statements are not allowed + semantic Error: tasks/coverage/typescript/tests/cases/compiler/constDeclarations2.ts Scope flags mismatch: after transform: ScopeId(1): ScopeFlags(StrictMode | Function) @@ -3086,275 +2886,6 @@ Symbol flags mismatch for "Foo": after transform: SymbolId(0): SymbolFlags(ConstEnum) rebuilt : SymbolId(0): SymbolFlags(FunctionScopedVariable) -semantic Error: tasks/coverage/typescript/tests/cases/compiler/constEnums.ts -Bindings mismatch: -after transform: ScopeId(1): ["A0", "Enum1"] -rebuilt : ScopeId(1): ["Enum1"] -Scope flags mismatch: -after transform: ScopeId(1): ScopeFlags(0x0) -rebuilt : ScopeId(1): ScopeFlags(Function) -Bindings mismatch: -after transform: ScopeId(2): ["A", "B", "C", "D", "E", "Enum1", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "PQ", "Q", "R", "S", "T", "U", "V", "W", "W1", "W2", "W3", "W4", "W5"] -rebuilt : ScopeId(2): ["Enum1"] -Scope flags mismatch: -after transform: ScopeId(2): ScopeFlags(0x0) -rebuilt : ScopeId(2): ScopeFlags(Function) -Bindings mismatch: -after transform: ScopeId(3): ["#", "*/", "-->", "/*", "//", "///", "